view bin/whoops @ 11251:4f78ebb7e1b8

<oerjan> learn The password of the month is equally offensive to all beliefs (but not time zones)
author HackBot
date Fri, 01 Dec 2017 03:01:21 +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}»"