]> gitweb.fluxo.info Git - downloaders.git/commitdiff
Quoting at tor-browser-dl
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 29 Sep 2014 14:43:35 +0000 (11:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 29 Sep 2014 14:43:35 +0000 (11:43 -0300)
tor-browser-dl

index 06e19671cad348d2165f5059ceb5409a7aff0b7d..0fccdffc42b77178a44a8a5ee622020cc18edc27 100755 (executable)
@@ -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"