Mercurial > repo
view bin/whoops @ 9714:ad82afc321ca
<oerjan> whoop ../bin/whoop
author | HackBot |
---|---|
date | Thu, 17 Nov 2016 18:25:56 +0000 |
parents | bin/whoop@74af86bc1ab2 |
children | 8ec9cd952dd5 |
line wrap: on
line source
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}»"