From 7f2d049b0dfbd3accd3c3ed89e6fa784f8148bc5 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" 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