Update junest-wrapper

Ensure empty argument list is "passed" correctly.
This commit is contained in:
Jonathon 2020-05-21 14:31:48 +00:00 committed by GitHub
parent 9a71c5c316
commit 87abc9b819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,2 +1,6 @@
#!/bin/bash
exec junest ns -n -b "$JUNEST_BINDS" -- /usr/bin/$(/usr/bin/basename $0) $(printf " %q" "$@")
declare args
[[ $@ ]] && args=$(printf " %q" "$@")
exec junest ns -n -b "$JUNEST_BINDS" -- /usr/bin/$(/usr/bin/basename $0) $args