bbb: $0 is the script, $1 is the version number.

This commit is contained in:
Steev Klimaszewski
2018-07-04 04:47:06 -05:00
parent b777e2e978
commit fed0c917a4

2
bbb.sh
View File

@@ -63,7 +63,7 @@ cp /usr/bin/qemu-arm-static kali-${architecture}/usr/bin/
LANG=C systemd-nspawn -M $machine -D kali-${architecture} /debootstrap/debootstrap --second-stage
if [ $0 == 'nightly' ]; then
if [ $1 == 'nightly' ]; then
cat << EOF > kali-${architecture}/etc/apt/sources.list
deb http://${mirror}/kali kali-rolling main contrib non-free
EOF