Mercurial > repo
changeset 12150:e82ba8366616 draft
<oerjan> slbd whoops//s,[(],HACKENV/$(,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 18 Nov 2019 02:34:19 +0000 |
parents | e87bf60ce012 |
children | 627b52c6b2cb |
files | bin/whoops |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/whoops Mon Nov 18 02:34:10 2019 +0000 +++ b/bin/whoops Mon Nov 18 02:34:19 2019 +0000 @@ -1,1 +1,1 @@ -OLD="$HACKENV/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}»" +OLD="$HACKENV/wisdom/$1"; [ -z "$1" ] && OLD="$HACKENV/$(lastfiles)"; NEW="${OLD}s"; if [ -f "$NEW" ]; then echo "«${NEW}» already exists"; exit 1; fi; mv "$OLD" "$NEW" && echo "«${OLD}» -> «${NEW}»"