strip duplicate /

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2012-01-06 10:50:34 +01:00
parent b67d785a24
commit 865acf3771

View file

@ -33,8 +33,8 @@ entry="$export"
entry="$entry $client"
# NOTE: if changed, also change in explorers
prefix="#cdist:__nfs_export/$export"
suffix="#/cdist:__nfs_export/$export"
prefix="#cdist:__nfs_export${export}"
suffix="#/cdist:__nfs_export${export}"
echo "$prefix" | tee "$__object/parameter/prefix" > "$__object/parameter/entry"
echo "$entry" >> "$__object/parameter/entry"
echo "$suffix" | tee "$__object/parameter/suffix" >> "$__object/parameter/entry"