We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 974aefd commit 0268c42Copy full SHA for 0268c42
1 file changed
config.sh
@@ -1,8 +1,8 @@
1
-#!/bin/bash
+#!/usr/bin/env bash
2
3
# Save and set safe shell options
4
SAVED_OPTIONS="$(set +o)"
5
-set -euo pipefail
+set -uo pipefail
6
trap 'eval "$SAVED_OPTIONS"' RETURN
7
8
# This script must be sourced to set environment variables in the parent shell.
@@ -24,7 +24,7 @@ for cmd in curl jq; do
24
return 1
25
fi
26
done
27
-
+unset cmd # Unset the loop variable for cleanliness
28
29
# Construct the login URL dynamically based on the username
30
LOGIN_URL="https://my.scouting.org/api/users/${SCOUT_USERNAME}/authenticate"
0 commit comments