diff --git a/scripts/sign-iso.sh b/scripts/sign-iso.sh index 3dde135..2d60037 100755 --- a/scripts/sign-iso.sh +++ b/scripts/sign-iso.sh @@ -38,7 +38,7 @@ sign_iso() { info "created signature $sig_file" fi ) - exit 0 + return 0 fi # ISO is already signed with developer keys - make sure .sig file exists @@ -57,7 +57,7 @@ for iso_file in "${iso_files[@]}" ; do if [[ -L "$iso_file" ]] ; then iso_link_target="$(readlink "$iso_file")" || exit 1 [[ -n "$iso_link_target" ]] || die "failed to read symlink $iso_file" - [[ ! "$iso_link_target" =~ ^/ ]] || die "$iso_file: link target must not include slashes" + [[ ! "$iso_link_target" =~ / ]] || die "$iso_file: link target must not include slashes" real_iso_file="$(dirname "$iso_file")/$iso_link_target" sign_iso "$real_iso_file" sig_file="${iso_file%.iso}.sig"