Commit 0bd8d3a0 authored by anonym's avatar anonym
Browse files

Separate set -eu in to separate statements.

... like we do in most places. This makes these highly relevant
properties of the scripts a bit more easy to spot.
parent 0be0def5
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
echo "Install the Tor Browser" echo "Install the Tor Browser"
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
echo "Install a fake gnome-backgrounds package" echo "Install a fake gnome-backgrounds package"
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
# We're a no-op unless running as the default desktop user # We're a no-op unless running as the default desktop user
[ "$(/usr/bin/id -u)" = 1000 ] || exit 0 [ "$(/usr/bin/id -u)" = 1000 ] || exit 0
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
# We're a no-op unless running as the default desktop user # We're a no-op unless running as the default desktop user
[ "$(/usr/bin/id -u)" = 1000 ] || exit 0 [ "$(/usr/bin/id -u)" = 1000 ] || exit 0
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
USER_PROFILE="${HOME}/.tor-browser" USER_PROFILE="${HOME}/.tor-browser"
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
# Import the TBB_INSTALL variable # Import the TBB_INSTALL variable
. /usr/local/lib/tails-shell-library/tor-browser.sh . /usr/local/lib/tails-shell-library/tor-browser.sh
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
# XXX: check if we still need that in Stretch # XXX: check if we still need that in Stretch
......
#!/bin/sh #!/bin/sh
set -eu set -e
set -u
# Get $XKBMODEL, $XKBLAYOUT, $XKBVARIANT and $XKBOPTIONS # Get $XKBMODEL, $XKBLAYOUT, $XKBVARIANT and $XKBOPTIONS
. /var/lib/tails-user-session/keyboard . /var/lib/tails-user-session/keyboard
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
# -*- mode: sh; sh-basic-offset: 4; indent-tabs-mode: nil; -*- # -*- mode: sh; sh-basic-offset: 4; indent-tabs-mode: nil; -*-
# vim: set filetype=sh sw=4 sts=4 expandtab autoindent: # vim: set filetype=sh sw=4 sts=4 expandtab autoindent:
set -eu set -e
set -u
set -o pipefail set -o pipefail
LANGUAGES=${@:-de fa fr pt} LANGUAGES=${@:-de fa fr pt}
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
# There will also be a corresponding file—which may be empty—called # There will also be a corresponding file—which may be empty—called
# "FolderName" # "FolderName"
set -eu set -e
set -u
OLDIFS=$IFS OLDIFS=$IFS
IFS=" IFS="
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment