samba.sh fix derp #214

This commit is contained in:
David Personette 2019-07-07 10:13:00 -04:00
parent 2fdd564f62
commit 9136a9b459

View File

@ -242,17 +242,17 @@ shift $(( OPTIND - 1 ))
[[ "${CHARMAP:-""}" ]] && charmap "$CHARMAP" [[ "${CHARMAP:-""}" ]] && charmap "$CHARMAP"
while read i; do while read i; do
global "$i" global "$i"
done <(env | awk '/^GLOBAL/ {sub (/^[^=]*=/, "", $0); print}') done <<< $(env | awk '/^GLOBAL/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${IMPORT:-""}" ]] && import "$IMPORT" [[ "${IMPORT:-""}" ]] && import "$IMPORT"
[[ "${PERMISSIONS:-""}" ]] && perms [[ "${PERMISSIONS:-""}" ]] && perms
[[ "${RECYCLE:-""}" ]] && recycle [[ "${RECYCLE:-""}" ]] && recycle
while read i; do while read i; do
eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i) eval share $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
done <(env | awk '/^SHARE/ {sub (/^[^=]*=/, "", $0); print}') done <<< $(env | awk '/^SHARE/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${SMB:-""}" ]] && smb [[ "${SMB:-""}" ]] && smb
while read i; do while read i; do
eval user $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i) eval user $(sed 's/^/"/; s/$/"/; s/;/" "/g' <<< $i)
done <(env | awk '/^USER/ {sub (/^[^=]*=/, "", $0); print}') done <<< $(env | awk '/^USER/ {sub (/^[^=]*=/, "", $0); print}')
[[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP" [[ "${WORKGROUP:-""}" ]] && workgroup "$WORKGROUP"
[[ "${WIDELINKS:-""}" ]] && widelinks [[ "${WIDELINKS:-""}" ]] && widelinks
[[ "${INCLUDE:-""}" ]] && include "$INCLUDE" [[ "${INCLUDE:-""}" ]] && include "$INCLUDE"