Skip to content

Commit 0268c42

Browse files
committed
minor updates
1 parent 974aefd commit 0268c42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Save and set safe shell options
44
SAVED_OPTIONS="$(set +o)"
5-
set -euo pipefail
5+
set -uo pipefail
66
trap 'eval "$SAVED_OPTIONS"' RETURN
77

88
# This script must be sourced to set environment variables in the parent shell.
@@ -24,7 +24,7 @@ for cmd in curl jq; do
2424
return 1
2525
fi
2626
done
27-
27+
unset cmd # Unset the loop variable for cleanliness
2828

2929
# Construct the login URL dynamically based on the username
3030
LOGIN_URL="https://my.scouting.org/api/users/${SCOUT_USERNAME}/authenticate"

0 commit comments

Comments
 (0)