Skip to content

Commit

Permalink
samba.sh fix #219 hopefully the last bug with the new multi-variable …
Browse files Browse the repository at this point in the history
…handling
  • Loading branch information
David Personette committed Jul 14, 2019
1 parent 9353586 commit 793b4f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,17 @@ shift $(( OPTIND - 1 ))
[[ "${CHARMAP:-""}" ]] && charmap "$CHARMAP"
while read i; do
global "$i"
done < <(env | awk '/^GLOBAL/ {sub (/^[^=]*=/, "", $0); print}')
done < <(env | awk '/^GLOBAL[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${IMPORT:-""}" ]] && import "$IMPORT"
[[ "${PERMISSIONS:-""}" ]] && perms
[[ "${RECYCLE:-""}" ]] && recycle
while read i; do
eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
done < <(env | awk '/^SHARE/ {sub (/^[^=]*=/, "", $0); print}')
done < <(env | awk '/^SHARE[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${SMB:-""}" ]] && smb
while read i; do
eval user $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
done < <(env | awk '/^USER/ {sub (/^[^=]*=/, "", $0); print}')
done < <(env | awk '/^USER[0-9=_]/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP"
[[ "${WIDELINKS:-""}" ]] && widelinks
[[ "${INCLUDE:-""}" ]] && include "$INCLUDE"
Expand Down

0 comments on commit 793b4f2

Please sign in to comment.