From d8eefcea1e638457e2c84a77eca0b7c9ead1e21a Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Fri, 2 Aug 2019 15:04:59 +0200 Subject: [PATCH] [gitea] Update image check with correct var --- alpine/gitea/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alpine/gitea/build.sh b/alpine/gitea/build.sh index 5ca6457..e65298b 100755 --- a/alpine/gitea/build.sh +++ b/alpine/gitea/build.sh @@ -11,7 +11,7 @@ IMAGE=/tmp/$NAME.raw ALPINE_TARBALL=alpine-minirootfs-$ALPINE_VERSION.$ALPINE_RELEASE-x86_64.tar.gz -[ -f $NAME.raw ] && rm $NAME.raw +[ -f $IMAGE.raw ] && rm $IMAGE.raw [ -f $ALPINE_TARBALL ] || wget http://dl-cdn.alpinelinux.org/alpine/v$ALPINE_VERSION/releases/x86_64/$ALPINE_TARBALL (sudo systemctl stop $NAME.service && sudo portablectl detach $NAME) || echo "Image not attached."