From fe511497b52c303cdb895e0ddbbe5962a89b3b69 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 27 Aug 2024 10:29:56 -0400 Subject: shorten $STY for termux --- src/twopane.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/twopane.bash b/src/twopane.bash index 0bec248..6003b8e 100755 --- a/src/twopane.bash +++ b/src/twopane.bash @@ -67,7 +67,12 @@ trap 'rm -r "$TWOPANE"' EXIT systemd_escape_path() { declare -n path="$1" result="$2" - result=$(realpath "$path") + if [ "$TERMUX_VERSION" ] + then + result=$(basename "$path") + else + result=$(realpath "$path") + fi result=${result//-/--} result=${result//\//-} } -- cgit v1.2.3