Skip to content

Commit c2e941b

Browse files
committed
exec if there are any command-line arguments specified
1 parent 052684a commit c2e941b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server.sh

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -eu
44

5+
# Check if there are any command-line arguments specified
6+
[ "$#" -gt 0 ] && exec "$@"
7+
58
# Extract the protocol (includes trailing "://").
69
DEST_PROTO="$(echo $DEST_REPO | sed -nr 's,^(.*://).*,\1,p')"
710
# Remove the protocol from the URL.

0 commit comments

Comments
 (0)