feat: bash unbound var checking

This commit is contained in:
ange 2025-06-17 05:42:27 +00:00
parent a23900c1f5
commit 261d1ba557
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/bin/bash -eu
cd "$(dirname "$0")" cd "$(dirname "$0")"
. ../lib.sh . ../lib.sh

View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/bin/bash -eu
cd "$(dirname "$0")" cd "$(dirname "$0")"
. ../lib.sh . ../lib.sh

2
lib.sh
View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/bin/bash -eu
DIR="$(dirname "${BASH_SOURCE[0]}")" DIR="$(dirname "${BASH_SOURCE[0]}")"
BRIDGE=virbr0 BRIDGE=virbr0

View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/bin/bash -eu
DIR="$(dirname "${BASH_SOURCE[0]}")" DIR="$(dirname "${BASH_SOURCE[0]}")"
fix_nft_drops() { fix_nft_drops() {

View File

@ -1,4 +1,4 @@
#!/bin/bash -e #!/bin/bash -eu
# vim: nowrap # vim: nowrap
cd "$(dirname "$0")" cd "$(dirname "$0")"
. ../lib.sh . ../lib.sh