Skip to content

Commit

Permalink
Scripts: fix environment.sh load_env exit code issue
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Dec 21, 2024
1 parent 93001ca commit fa83d2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configuration/scripts/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fi
load_env() {
local file="$1"
if [ -f "$file" ]; then
while IFS='=' read -r key value; do
while IFS='=' read -r key value || [ -n "$key" ]; do
# Skip comments and empty lines
[[ $key =~ ^[[:space:]]*# ]] && continue
[[ -z "$key" ]] && continue
Expand Down
1 change: 1 addition & 0 deletions configuration/scripts/generate-belt-tension-graph.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -eo pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "$(realpath -- "${BASH_SOURCE[0]}")" )" &> /dev/null && pwd )

Expand Down

0 comments on commit fa83d2d

Please sign in to comment.