aboutsummaryrefslogtreecommitdiffstats
path: root/blind-rotate-90
diff options
context:
space:
mode:
Diffstat (limited to 'blind-rotate-90')
-rwxr-xr-xblind-rotate-904
1 files changed, 2 insertions, 2 deletions
diff --git a/blind-rotate-90 b/blind-rotate-90
index bbecc5b..9e41ef5 100755
--- a/blind-rotate-90
+++ b/blind-rotate-90
@@ -12,7 +12,7 @@ if ! test $# = 0; then
fi
fi
-transpose="$(printf '%s\n' "$0" | sed 's/[^/]*$/blind-transpose/')"
-flop="$( printf '%s\n' "$0" | sed 's/[^/]*$/blind-flop/')"
+transpose="$(printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-transpose\//' | tr '/\n' '\n/')"
+flop="$( printf '%s\n' "$0" | tr '/\n' '\n/' | sed '$s/^.*$/blind-flop\//' | tr '/\n' '\n/')"
"$transpose" | "$flop"