annotate bin/whoops @ 11243:5c41fb3f6567

<oerjan> # Stolen from Roger9//`learn Bureaucracy (from French bureau, "burrow") is a political system in which squirrels rule the nation, and burrow their nuts.
author HackBot
date Wed, 22 Nov 2017 00:43:46 +0000
parents ad82afc321ca
children 8ec9cd952dd5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9708
5b15e42489b9 <oerjan> mkx bin/whoops//OLD="wisdom/$1"; [ -z "$1" ] && OLD="$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "\xc2\xab${NEW}\xc2\xbb already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "\xc2\xab${OLD}\xc2\xbb -> \xc2\xab${NEW}\xc2\xbb"
HackBot
parents: 5338
diff changeset
1 OLD="wisdom/$1"; [ -z "$1" ] && OLD="$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»"