summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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}