diff options
author | Andrew Cady <d@jerkface.net> | 2024-08-27 10:29:56 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2024-08-27 10:29:56 -0400 |
commit | fe511497b52c303cdb895e0ddbbe5962a89b3b69 (patch) | |
tree | 362efdb91c2e732a36c5cd84f80fc75c9b1f1b94 /src/twopane.bash | |
parent | 6ecd760313c4caa78019541f8e006751b312bb2a (diff) |
shorten $STY for termux
Diffstat (limited to 'src/twopane.bash')
-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 | } |