Mercurial > repo
view bin/whoops @ 9950:7f0e7ff05273
<oerjan> revert 9947
author | HackBot |
---|---|
date | Mon, 12 Dec 2016 02:44:19 +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}»"