Mercurial > repo
view bin/whoops @ 11958:8d952404db29 draft
<arseniiv> learn The password of the month is not what it seems
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 01 Oct 2019 09:56:10 +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}»"