Skip to content

Commit 768cbc4

Browse files
authored
fix(tusc): use HOME env instead of tilde
1 parent fa04e21 commit 768cbc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tusc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Be sure to check readme doc at https://github.com/adhocore/tusc.sh
99
#
1010

11-
if [[ -f ~/.tus.dbg ]]; then set -ex; else set -e; fi
11+
if [[ -f $HOME/.tus.dbg ]]; then set -ex; else set -e; fi
1212

1313
FULL=$(readlink -f $0) TUSC=$(basename $0) SPINID=0 CURLARGS=
1414

@@ -80,7 +80,7 @@ USAGE
8080
# get/set tus config
8181
tus-config() # $1 = key, $2 = value
8282
{
83-
TUSFILE=`realpath ~/.tus.json`
83+
TUSFILE="$HOME/.tus.json"
8484
[[ -f $TUSFILE ]] || echo '{}' > $TUSFILE
8585
TUSJSON=`cat $TUSFILE`
8686

0 commit comments

Comments
 (0)