From daddc055e64580fd6333328e21642c16b63fbcfc Mon Sep 17 00:00:00 2001 From: David Personette Date: Tue, 5 Jan 2016 06:48:01 -0500 Subject: [PATCH] samba.sh fix spacing / line wrap derp --- samba.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samba.sh b/samba.sh index 2188c4b..087a310 100755 --- a/samba.sh +++ b/samba.sh @@ -39,8 +39,9 @@ import() { local name id file="${1}" # users) list of allowed users # admins) list of admin users # Return: result -share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes}\ - guest=${5:-yes} users=${6:-""} admins=${7:-"none"} file=/etc/samba/smb.conf +share() { local share="$1" path="$2" browse=${3:-yes} ro=${4:-yes} \ + guest=${5:-yes} users=${6:-""} admins=${7:-""} \ + file=/etc/samba/smb.conf sed -i "/\\[$share\\]/,/^\$/d" $file echo "[$share]" >>$file echo " path = $path" >>$file