Skip to content

Commit

Permalink
AppImage: Fixed ability to launch without parameters
Browse files Browse the repository at this point in the history
After fixing the "is string non-empty" check in de5373a,
the script no longer did anything when no parameter was given...

As far as I could see, this check should just be removed.

See #3914
  • Loading branch information
bjorn committed Apr 18, 2024
1 parent 3285e95 commit 4862b51
Showing 1 changed file with 25 additions and 29 deletions.
54 changes: 25 additions & 29 deletions dist/linux/AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,28 @@ my_help() {
echo "Tiled help:"
}

if [ -n "${1}" ]
then
case ${1} in
terraingenerator)
shift
exec "$this_dir"/${bin_dir}/terraingenerator "$@"
;;
tiled)
shift
exec "$this_dir"/${bin_dir}/tiled "$@"
;;
tmxrasterizer)
shift
exec "$this_dir"/${bin_dir}/tmxrasterizer "$@"
;;
tmxviewer)
shift
exec "$this_dir"/${bin_dir}/tmxviewer "$@"
;;
"--help")
my_help
exec "$this_dir"/${bin_dir}/tiled "--help"
;;
*)
exec "$this_dir"/${bin_dir}/tiled "$@"
;;
esac

fi
case ${1} in
terraingenerator)
shift
exec "$this_dir"/${bin_dir}/terraingenerator "$@"
;;
tiled)
shift
exec "$this_dir"/${bin_dir}/tiled "$@"
;;
tmxrasterizer)
shift
exec "$this_dir"/${bin_dir}/tmxrasterizer "$@"
;;
tmxviewer)
shift
exec "$this_dir"/${bin_dir}/tmxviewer "$@"
;;
"--help")
my_help
exec "$this_dir"/${bin_dir}/tiled "--help"
;;
*)
exec "$this_dir"/${bin_dir}/tiled "$@"
;;
esac

0 comments on commit 4862b51

Please sign in to comment.