Skip to content
Prev Previous commit
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)
  • Loading branch information
lloydchang committed Oct 29, 2024
commit 26c6423ea12cbb3e545939936a9cdf78da8ce547
4 changes: 2 additions & 2 deletions codespaces_start_hackingbuddygpt_against_a_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
set -e # Exit immediately if a command exits with a non-zero status
set -u # Treat unset variables as an error and exit immediately
set -o pipefail # Return the exit status of the last command in a pipeline that failed
set +x # Turn off the printing of each command before executing it (even though it is useful for debugging)
set -x # Print each command before executing it (useful for debugging)

# Step 1: Install prerequisites

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

# Step 3: Start hackingBuddyGPT against a container
Expand Down
Loading