-#!/bin/bash -l
+#!/bin/bash
# Copyright (C) 2016 Ian Kelling
# Licensed under the Apache License, Version 2.0 (the "License");
# See the License for the specific language governing permissions and
# limitations under the License.
-set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
+if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
# stable version is shown on:
if [[ $timestamp != $new_timestamp || ! -e /a/opt/tor-browser_en-US/Browser/start-tor-browser ]]; then
# not already installed
rm -rf tor-browser_en-US
- ex $f
+ tar Jxf $f
fi
for x in tor-*.tar.xz; do
[[ $x != $f ]] || continue
command rm -f $x
done
-s lnf /a/opt/tor-browser_en-US/Browser/start-tor-browser /usr/local/bin
+sudo ln -sf /a/opt/tor-browser_en-US/Browser/start-tor-browser /usr/local/bin