diff options
Diffstat (limited to 'tor-browser-dl')
-rwxr-xr-x | tor-browser-dl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tor-browser-dl b/tor-browser-dl index 06e1967..0fccdff 100755 --- a/tor-browser-dl +++ b/tor-browser-dl @@ -42,38 +42,38 @@ if [ -d "$APP_BASE/$ARCH-$VERSION" ]; then fi # Temp folder -mkdir -p $TEMP +mkdir -p "$TEMP" # Download package if [ ! -e "$DL/$FILE" ]; then - wget -c $BASE_URL/$FILE -O $DL/$FILE || exit 1 + wget -c "$BASE_URL/$FILE" -O "$DL/$FILE" || exit 1 fi # Download signature if [ ! -e "$DL/$SIGN" ]; then - wget -c $BASE_URL/$SIGN -O $DL/$SIGN || exit 1 + wget -c "$BASE_URL/$SIGN" -O "$DL/$SIGN" || exit 1 fi # Check signature -gpg --verify $DL/$SIGN $DL/$FILE || exit 1 +gpg --verify "$DL/$SIGN" "$DL/$FILE" || exit 1 # Unpack -( cd $TEMP && tar xf $DL/$FILE ) || exit 1 +( cd "$TEMP" && tar xf "$DL/$FILE" ) || exit 1 # Move and symlink -mv $TEMP/tor-browser_$LANG $APP_BASE/$ARCH-$VERSION +mv "$TEMP/tor-browser_$LANG" "$APP_BASE/$ARCH-$VERSION" rm -rf $APP_BASE/$ARCH && \ -( cd $APP_BASE && ln -sf $ARCH-$VERSION $ARCH ) +( cd "$APP_BASE" && ln -sf "$ARCH-$VERSION" "$ARCH" ) # Set pentadactyl if available if [ -e "$HOME/.pentadactyl" ]; then ( - cd $APP_BASE/$ARCH-$VERSION - ln -s ~/.pentadactyl - ln -s ~/.pentadactylrc + cd "$APP_BASE/$ARCH-$VERSION" + ln -s "$HOME/.pentadactyl" + ln -s "$HOME/.pentadactylrc" ) fi # Cleanup -rm -rf $TEMP +rm -rf "$TEMP" echo "Please check and cleanup old versions at $APP_BASE" |