diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/twopane.bash | 7 |
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 | |||
67 | systemd_escape_path() | 67 | systemd_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 | } |