Skip to content

Commit

Permalink
Fixup #44: Fixup bug when defining ABSPATH variable
Browse files Browse the repository at this point in the history
Using `cd` might cause shell to echo back new working directory
(cf. issue #44)

Proposed solution is to redirect `cd` output to `/dev/null`
  • Loading branch information
cedef authored and flaupretre committed Oct 19, 2024
1 parent 605e3ed commit 910555c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -z "$TUNNEL_TF_PID" ] ; then
env >&2
fi

TUNNEL_ABSPATH=$(cd "$(dirname "$0")"; pwd -P)
TUNNEL_ABSPATH=$(cd "$(dirname "$0")" >/dev/null; pwd -P)
export TUNNEL_ABSPATH

query="$(dd 2>/dev/null)"
Expand Down

0 comments on commit 910555c

Please sign in to comment.