From dc8921fa88c40e5015b6cb1ffea635511da18eb0 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 17 Sep 2009 07:11:09 +0000 Subject: [PATCH] sshfs-mapper: fix 'shift : can't shift that many' error with old dash. git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1435 eaee96b3-f302-0410-b096-c6cfd47f7835 --- sshfs-mapper | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sshfs-mapper b/sshfs-mapper index f631baa..4da2603 100644 --- a/sshfs-mapper +++ b/sshfs-mapper @@ -108,8 +108,11 @@ SSHFS_HOST_LIMIT=0 SSHFS_HOST_LIST=0 SSHFS_HOST_AUTO=0 OPTFOUND=0 -while OPT=${1:-} ; shift +while true do + OPT=${1:-} + if [ -z $OPT ]; then break ; fi + shift OPTARG=${1:-} #echo "$OPT?" case "$OPT" in