makeScriptWrapper: warn if target file does not exist

This commit is contained in:
Wroclaw 2025-02-24 14:25:04 +01:00
commit 8748d67aac

View file

@ -3,6 +3,8 @@
# assertExecutable FILE
assertExecutable() {
local file="$1"
[[ -e "$file" ]] || \
die "Cannot wrap '$file' because it does not exist"
[[ -f "$file" && -x "$file" ]] || \
die "Cannot wrap '$file' because it is not an executable file"
}