Skip to content

Commit

Permalink
exec if there are any command-line arguments specified
Browse files Browse the repository at this point in the history
  • Loading branch information
karser committed Nov 28, 2024
1 parent 052684a commit c2e941b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -eu

# Check if there are any command-line arguments specified
[ "$#" -gt 0 ] && exec "$@"

# Extract the protocol (includes trailing "://").
DEST_PROTO="$(echo $DEST_REPO | sed -nr 's,^(.*://).*,\1,p')"
# Remove the protocol from the URL.
Expand Down

0 comments on commit c2e941b

Please sign in to comment.