Mercurial > repo
view bin/whoops @ 11220:119554c56366
<boily> le/rn beer//Beer never ships from Qu\xc3\xa9bec.
author | HackBot |
---|---|
date | Wed, 11 Oct 2017 01:11:03 +0000 |
parents | ad82afc321ca |
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}»"