Skip to content
Snippets Groups Projects
Commit f2cd2359 authored by Simon McVittie's avatar Simon McVittie
Browse files

pressure-vessel-wrap: Check for command line validity earlier

parent 36698233
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,16 @@ if [ "$#" -eq 0 ]; then
exit 2
fi
if [ -z "$fake_home" ]; then
if [ -n "${SteamAppId:-}" ]; then
fake_home="$HOME/.var/app/com.steampowered.App$SteamAppId"
else
echo "$me: either --home, --freedesktop-app-id, --steam-app-id" \
"or \$SteamAppId is required" >&2
exit 2
fi
fi
if [ -n "$verbose" ]; then
echo "Original argv:" >&2
printf '\t%s\n' "\$0: $0" >&2
......@@ -338,16 +348,6 @@ else
esac
fi
if [ -z "$fake_home" ]; then
if [ -n "${SteamAppId:-}" ]; then
fake_home="$HOME/.var/app/com.steampowered.App$SteamAppId"
else
echo "$me: either --home, --freedesktop-app-id, --steam-app-id" \
"or \$SteamAppId is required" >&2
exit 2
fi
fi
cleanup () {
if [ -n "$tmpdir" ]; then
rm -fr "$tmpdir"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment