aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-09-29 11:43:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-09-29 11:43:35 -0300
commitfe665ee569848e19282f83a3ced9718ff5b4f6f8 (patch)
tree68ac779a5541383f7eb80cb5909cb5505ee14d41
parentc56e025848ee92c7787268d627e77c43ab194454 (diff)
downloaddownloaders-fe665ee569848e19282f83a3ced9718ff5b4f6f8.tar.gz
downloaders-fe665ee569848e19282f83a3ced9718ff5b4f6f8.tar.bz2
Quoting at tor-browser-dl
-rwxr-xr-xtor-browser-dl22
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"