diff moefetch.sh @ 212:da4c03c7377c

fix: count folder doesn't work on empty folder (messed up when removing 'cd' usage)
author edhoprima@gmail.com <edhoprima@gmail.com>
date Mon, 29 Jun 2009 17:35:43 +0000
parents fbb93733098e
children dd95cf01602c
line wrap: on
line diff
--- a/moefetch.sh	Mon Jun 29 17:23:33 2009 +0000
+++ b/moefetch.sh	Mon Jun 29 17:35:43 2009 +0000
@@ -50,7 +50,7 @@
 
 # useless welcome message. Also version
 Msg_Welcome() {
-	MOEFETCHVERSION="0.2"
+	MOEFETCHVERSION="0.2.1"
 	cat <<EOF
 moefetch ${MOEFETCHVERSION}
 Copyright (c) 2009 edogawaconan <me@myconan.net>
@@ -123,7 +123,7 @@
 Count_Files() {
 	_i=0
 	for _f in "${*}/"* "${*}/".*; do 
-		if [ "${_f}" != '*' ] || [ -e "${_f}" ]; then 
+		if [ "${_f}" != "${*}/"'*' ] || [ -e "${_f}" ]; then 
 			_i=$((_i + 1))
 		fi
 	done