From 581aaf288eee8c0450ed4397389569504fa54904 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 4 Oct 2021 13:43:48 +0300 Subject: [PATCH] Allow running `sparrow` script from other paths IIUC, it currently assumes that it's run locally using `./sparrow`. --- sparrow | 1 + 1 file changed, 1 insertion(+) diff --git a/sparrow b/sparrow index 632ef8c5..91440732 100755 --- a/sparrow +++ b/sparrow @@ -1,5 +1,6 @@ #!/usr/bin/env sh +cd `dirname $0` args="$*" args="${args%"${args##*[![:space:]]}"}"