Skip to content

Commit

Permalink
Refactor deploy script to improve variable naming for SSH user and po…
Browse files Browse the repository at this point in the history
…rt. Updated variables from 'ssh_user' and 'ssh_port' to 'SPIN_SSH_USER' and 'SPIN_SSH_PORT' for better clarity and consistency.
  • Loading branch information
jaydrogers committed Dec 18, 2024
1 parent bbdf4c3 commit baebfbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/actions/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
################################################################################
# Helper functions
################################################################################

cleanup_on_exit() {
local exit_code=$?

Expand Down Expand Up @@ -111,7 +110,7 @@ action_deploy() {
while [[ $# -gt 0 ]]; do
case "$1" in
--user | -u)
ssh_user="$2"
SPIN_SSH_USER="$2"
shift 2
;;
--compose-file | -c)
Expand All @@ -124,7 +123,7 @@ action_deploy() {
fi
;;
--port | -p)
ssh_port="$2"
SPIN_SSH_PORT="$2"
shift 2
;;
--upgrade|-U)
Expand Down

0 comments on commit baebfbc

Please sign in to comment.