diff moefetch.sh @ 166:cc60e8cf7793

dunno :<
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:24:27 +0000
parents 9495944e326b
children 78ac6fd03e3a
line wrap: on
line diff
--- a/moefetch.sh	Fri Jun 05 19:21:48 2009 +0000
+++ b/moefetch.sh	Fri Jun 05 19:24:27 2009 +0000
@@ -137,7 +137,7 @@
 
 # check files correctness
 Check_Files() {
-	if [ "$ISNEW" -ne 1 ]; then
+	if [ ! "${ISNEW}" ]; then
 		echo "Checking for errors..."
 		# THE FILES
 		
@@ -193,7 +193,7 @@
 			echo "Empty local repository"
 		fi
 		cd "${BASE_DIR}/temp"
-		cat "${SITE_DIR}-${TARGET_DIR}-list" > "${TARGET_DIR}-newlist"
+		cat "${SITE_DIR}-${TARGET_DIR}-list" > "${SITE_DIR}-${TARGET_DIR}-newlist"
 	fi
 }
 
@@ -220,8 +220,8 @@
 	export PATH
 	
 	# misc variables
-	ISQUICK=""
-	ISNEW=""
+	ISQUICK=
+	ISNEW=
 
 	[ $# -lt 2 ] && Err_Help
 	case "$1" in
@@ -245,7 +245,7 @@
 			SITE="${DEFAULT_SITE}"
 		;;
 	esac
-	TAGS=$@
+	TAGS="$@"
 	echo "Tags: ${TAGS}"
 	# slash is not wanted for folder name
 	TARGET_DIR="`echo "${TAGS}" | sed -e 's/\//_/g'`"