comparison moefetch.sh @ 163:e2149ba6ab9c

shift placed at wrong place.
author edhoprima@gmail.com <edhoprima@gmail.com>
date Fri, 05 Jun 2009 19:19:56 +0000
parents 1f937c2e8b3f
children ecc73a13549f
comparison
equal deleted inserted replaced
162:1f937c2e8b3f 163:e2149ba6ab9c
237 SITE= 237 SITE=
238 case "$1" in 238 case "$1" in
239 -s|--site) 239 -s|--site)
240 shift 240 shift
241 SITE="$1" 241 SITE="$1"
242 shift
242 ;; 243 ;;
243 *) 244 *)
244 SITE="${DEFAULT_SITE}" 245 SITE="${DEFAULT_SITE}"
245 ;; 246 ;;
246 esac 247 esac
247 shift
248 TAGS=$@ 248 TAGS=$@
249 echo "Tags: ${TAGS}" 249 echo "Tags: ${TAGS}"
250 # slash is not wanted for folder name 250 # slash is not wanted for folder name
251 TARGET_DIR="`echo "${TAGS}" | sed -e 's/\//_/g'`" 251 TARGET_DIR="`echo "${TAGS}" | sed -e 's/\//_/g'`"
252 SITE_DIR="`echo "${SITE}" | sed -e 's/\/$//g;s/\//_/g'`" 252 SITE_DIR="`echo "${SITE}" | sed -e 's/\/$//g;s/\//_/g'`"