fix: Local variables

This commit is contained in:
Kroese 2024-04-27 15:28:58 +02:00 committed by GitHub
parent f6ffc8db2a
commit 166ae138e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,11 +6,11 @@ set -Eeuo pipefail
[[ "$SAMBA" != [Yy1]* ]] && return 0
[[ "$NETWORK" != [Yy1]* ]] && return 0
local hostname="host.lan"
local interface="dockerbridge"
hostname="host.lan"
interface="dockerbridge"
[[ "$DHCP" == [Yy1]* ]] && interface="$VM_NET_DEV"
local share="$STORAGE/shared"
share="$STORAGE/shared"
mkdir -p "$share"
[ -z "$(ls -A "$share")" ] && chmod -R 777 "$share"