qx (347B)
1 qx() { # register executable as dependency and quote full path to be suitable for execline 2 exe=$(realpath "$(which "$1")") 3 name=$(basename "$1") 4 if ! test -x "$exe"; then 5 printf 'Error: executable not found: %s\n' "$1" 6 fi 7 mkdir -p "${dest}/deps/command" 8 ln -sf $exe "${dest}/deps/command/$name" 9 "s6-quote" "$prefix/deps/command/$name" 10 }