From fe665ee569848e19282f83a3ced9718ff5b4f6f8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 29 Sep 2014 11:43:35 -0300 Subject: Quoting at tor-browser-dl --- tor-browser-dl | 22 +++++++++++----------- 1 file 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" -- cgit v1.2.3