Skip to content

Commit 13a0ed5

Browse files
added check julesadmin user.
1 parent aa5d6fa commit 13a0ed5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

kgo_updates/kgo_update/jules_kgo_update.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
set -e
66

7+
# Set the expected username
8+
EXPECTED_USER="julesadmin"
9+
10+
# Get the current username
11+
CURRENT_USER=$(whoami)
12+
13+
# Check if the script is run by the expected user
14+
if [ "$CURRENT_USER" != "$EXPECTED_USER" ]; then
15+
echo "Error: This script must be run as $EXPECTED_USER."
16+
exit 1
17+
fi
18+
719
read -rp "KGO VERSION:" KGO_VERSION
820
read -rp "USER NAME:" USER_NAME
921
read -rp "SUITE/RUNX NAME:" SUITE

0 commit comments

Comments
 (0)