Allow running sparrow script from other paths

IIUC, it currently assumes that it's run locally using `./sparrow`.
This commit is contained in:
Roman Zeyde 2021-10-04 13:43:48 +03:00
parent 2fa47e640d
commit 581aaf288e

View file

@ -1,5 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
cd `dirname $0`
args="$*" args="$*"
args="${args%"${args##*[![:space:]]}"}" args="${args%"${args##*[![:space:]]}"}"