Avoid extra slash at the start of the --get-image-path when no directory is used

debian-cd 2.0
Raphaël Hertzog 10 years ago
parent 4635b427e1
commit 7fd4724262

@ -35,9 +35,9 @@ target_image_name() {
IMAGE_EXT="img"
fi
if [ "$KALI_VARIANT" = "default" ]; then
echo "$TARGET_SUBDIR/kali-linux-$KALI_VERSION-$KALI_ARCH.$IMAGE_EXT"
echo "${TARGET_SUBDIR:+$TARGET_SUBDIR/}kali-linux-$KALI_VERSION-$KALI_ARCH.$IMAGE_EXT"
else
echo "$TARGET_SUBDIR/kali-linux-$KALI_VARIANT-$KALI_VERSION-$KALI_ARCH.$IMAGE_EXT"
echo "${TARGET_SUBDIR:+$TARGET_SUBDIR/}kali-linux-$KALI_VARIANT-$KALI_VERSION-$KALI_ARCH.$IMAGE_EXT"
fi
}

Loading…
Cancel
Save