Skip to content

Commit

Permalink
Strip trailing slash in URL parameter to avoid unexpected 404
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jan 26, 2016
1 parent 59b3ce6 commit 09c672c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# parse options
while [ -n "$1" ]; do
case "$1" in
--url) export URL="$2"; shift;;
--url) export URL=${2%/}; shift;; # strip trailing slash
--interval) export INTERVAL=$2; shift;;
--verify-ssl) export VERIFY_SSL=$2; shift;;
--uuid) export UUID="$2"; shift;;
Expand Down

0 comments on commit 09c672c

Please sign in to comment.