Skip to content

Commit 26c6423

Browse files
committed
fix: change parameters to facilitate debugging
via set -x (instead set +x which hides commands) and read (instead of read -s which hides inputted OPENAI_API_KEY)
1 parent 8a9de11 commit 26c6423

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codespaces_start_hackingbuddygpt_against_a_container.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
set -e # Exit immediately if a command exits with a non-zero status
88
set -u # Treat unset variables as an error and exit immediately
99
set -o pipefail # Return the exit status of the last command in a pipeline that failed
10-
set +x # Turn off the printing of each command before executing it (even though it is useful for debugging)
10+
set -x # Print each command before executing it (useful for debugging)
1111

1212
# Step 1: Install prerequisites
1313

@@ -26,7 +26,7 @@ echo
2626
echo 'Therefore, running hackingBuddyGPT with GPT-4-turbo against containing a container with maximum 10 tries would cost around $0.20.'
2727
echo
2828
echo "Enter your OpenAI API key and press the return key:"
29-
read -s OPENAI_API_KEY
29+
read OPENAI_API_KEY
3030
echo
3131

3232
# Step 3: Start hackingBuddyGPT against a container

0 commit comments

Comments
 (0)