appimage-run: add usage message

This commit is contained in:
Timo Kaufmann 2019-03-09 21:43:09 +01:00
parent 80d032b13b
commit 6af25fd1ad

View file

@ -10,6 +10,12 @@ in buildFHSUserEnv (fhsArgs // {
runScript = writeScript "appimage-exec" '' runScript = writeScript "appimage-exec" ''
#!${runtimeShell} #!${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")" APPIMAGE="$(realpath "$1")"
if [ ! -x "$APPIMAGE" ]; then if [ ! -x "$APPIMAGE" ]; then