Mercurial > repo
view bin/whoopss @ 9709:f7fda861e68d
<oerjan> whoops
author | HackBot |
---|---|
date | Thu, 17 Nov 2016 17:26:45 +0000 |
parents | bin/whoops@5b15e42489b9 |
children |
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}»"