view bin/whoops @ 11213:ec128aee030a

<b_jonas> `` ln -svf allsets-2017-09-20.txt share/mtg/allsets.txt
author HackBot
date Wed, 04 Oct 2017 11:36:52 +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}»"