FIX - Force Alpine directory creation in case we're in Gitlab CI
This commit is contained in:
@ -5,6 +5,7 @@ DIR=${DIRPATH:-'/alpine'}
|
||||
script_url="https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install"
|
||||
script_version="v0.9.0"
|
||||
script_name="alpine-chroot-install"
|
||||
FORCE_EXEC=${FORCE_EXEC:-0}
|
||||
|
||||
# Tests
|
||||
if ! [[ $DIR == /* ]]; then
|
||||
@ -20,7 +21,7 @@ if ! test -f "$SCRIPT"; then
|
||||
fi
|
||||
|
||||
# Install Alpine
|
||||
if ! test -d "$DIR"; then
|
||||
if ! test -d "$DIR" || ! [[ "$FORCE_EXEC" == 0 ]]; then
|
||||
sudo bash ./$SCRIPT -d $DIR -m http://ftp.halifax.rwth-aachen.de/alpine \
|
||||
-p abuild \
|
||||
-p bash \
|
||||
|
Reference in New Issue
Block a user