summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2024-08-27 10:29:56 -0400
committerAndrew Cady <d@jerkface.net>2024-08-27 10:29:56 -0400
commitfe511497b52c303cdb895e0ddbbe5962a89b3b69 (patch)
tree362efdb91c2e732a36c5cd84f80fc75c9b1f1b94
parent6ecd760313c4caa78019541f8e006751b312bb2a (diff)
shorten $STY for termux
-rwxr-xr-xsrc/twopane.bash7
1 files changed, 6 insertions, 1 deletions
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
67systemd_escape_path() 67systemd_escape_path()
68{ 68{
69 declare -n path="$1" result="$2" 69 declare -n path="$1" result="$2"
70 result=$(realpath "$path") 70 if [ "$TERMUX_VERSION" ]
71 then
72 result=$(basename "$path")
73 else
74 result=$(realpath "$path")
75 fi
71 result=${result//-/--} 76 result=${result//-/--}
72 result=${result//\//-} 77 result=${result//\//-}
73} 78}