From d1195da5b3a1b1a35a0b89ef4e4df1029372bef7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 21 Mar 2018 10:33:42 +0100 Subject: Fix copy&paste error --- scripts/mount-store | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/mount-store b/scripts/mount-store index 0faf236..94b868d 100755 --- a/scripts/mount-store +++ b/scripts/mount-store @@ -177,13 +177,13 @@ main () { fi if [ "$RET" != 0 ]; then for opt in "#" "vers=4" "vers=3"; do - mntopts="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys" - [ "$opt" != "#" ] && mntopts="$mntopts,$opt" - exec_mount "nfs" "$mntopts" "$SOURCE" "$DEST" + OPTSTR="rw,noatime,noexec,nodev,async,nolock,fg,ac,retry=0,timeo=200,sec=sys" + [ "$opt" != "#" ] && OPTSTR="$OPTSTR,$opt" + exec_mount "nfs" "$OPTSTR" "$SOURCE" "$DEST" RET=$? [ "$RET" = 0 ] && break done - if [ "$RET" = 0 ] && [ -n "$mntopts" ]; then + if [ "$RET" = 0 ] && [ -n "$OPTSTR" ]; then echo "$OPTSTR" > "$NFS_OPTS" fi fi -- cgit v1.2.3-55-g7522