Skip to content

Commit

Permalink
πŸ› FIX: #130 opening url paths that end in a file name gives a 404
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed May 10, 2021
1 parent cd2fec7 commit 9bc2cc0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .gp/bash/open-preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ exit 1

. .gp/bash/spinner.sh

__path=
if [[ -n $1 ]]; then
if [[ ! $1 =~ \/$ ]]; then
__path=/$1/
else
__path=/$1
fi
fi
__path=/$1

__port=$(bash .gp/bash/helpers.sh get_default_server_port)
if [[ $(bash .gp/bash/helpers.sh is_inited) == 0 ]]; then
. .gp/bash/spinner.sh &&
Expand Down

0 comments on commit 9bc2cc0

Please sign in to comment.