appimage-run: add usage message
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user