diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 19:59:55 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 22:32:23 -0500 |
commit | db5213a116da236ff829ee4fa9a14c20867a852b (patch) | |
tree | 9b03c4a6c5d91b94ad244b0d385e74c93a954487 /examples/data/scripts/session.sh | |
parent | 06c29bbd5d1ad0542d8de4a6661bd8366d9c56d5 (diff) |
Remove the use of positional arguments
Positional arguments should be given meaningful names.
Diffstat (limited to 'examples/data/scripts/session.sh')
-rwxr-xr-x | examples/data/scripts/session.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/data/scripts/session.sh b/examples/data/scripts/session.sh index 80c9744..73ee99b 100755 --- a/examples/data/scripts/session.sh +++ b/examples/data/scripts/session.sh @@ -32,6 +32,7 @@ UZBL="uzbl-browser -c \"$UZBL_CONFIG_FILE\"" # add custom flags and whatever her scriptfile="$(readlink -f "$0")" # this script act="$1" +shift if [ -z "$act" ]; then [ -f "$UZBL_SESSION_FILE" ] && act="launch" || act="endsession" |