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