diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-01 11:41:43 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-07-01 10:15:32 +0000 |
commit | a2b37feaf807b0c8773d41a4157d733328557386 (patch) | |
tree | 4d988bc1c17f296c5584f9ae05bc9a07bdf8681b /setup-disk.in | |
parent | 4ad15542bc927c47ad0b56e7ee03d2b711448e39 (diff) | |
download | alpine-conf-a2b37feaf807b0c8773d41a4157d733328557386.zip |
setup-disk: exit if either mode or disk is 'none'
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index f9306c0..54f078f 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -1468,7 +1468,9 @@ while getopts "hek:Lm:o:qrs:v" opt; do done shift $(( $OPTIND - 1)) -[ "$DISK_MODE" = "none" ] && exit 0 +if [ "$DISK_MODE" = "none" ] || [ "$1" = "none" ]; then + exit 0 +fi if is_rpi; then : ${BOOTLOADER:=raspberrypi-bootloader} |