# HG changeset patch # User edhoprima@gmail.com # Date 1246296943 0 # Node ID da4c03c7377c7542762655b4de2246d2a5bd64df # Parent fbb93733098e9b35fdc30ea94ebcca2dff01f692 fix: count folder doesn't work on empty folder (messed up when removing 'cd' usage) diff -r fbb93733098e -r da4c03c7377c moefetch.sh --- 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 < @@ -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