appimage-run: add usage message
This commit is contained in:
parent
80d032b13b
commit
6af25fd1ad
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ in buildFHSUserEnv (fhsArgs // {
|
|||
|
||||
runScript = writeScript "appimage-exec" ''
|
||||
#!${runtimeShell}
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 FILE [OPTION...]"
|
||||
echo
|
||||
echo "If you want to execute a custom command in the appimage's environment, set the APPIMAGE_DEBUG_EXEC environment variable."
|
||||
exit 1
|
||||
fi
|
||||
APPIMAGE="$(realpath "$1")"
|
||||
|
||||
if [ ! -x "$APPIMAGE" ]; then
|
||||
|
|
Loading…
Reference in a new issue