Mercurial > repo
changeset 12076:8ec9cd952dd5 draft
<fizzie> sled /hackenv/bin/whoops//s|wisdom/|$HACKENV/wisdom/|
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sat, 16 Nov 2019 21:56:16 +0000 |
parents | 41dfafec3adc |
children | 0e87ec26f6bc |
files | bin/whoops |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/whoops Sat Nov 16 21:55:10 2019 +0000 +++ b/bin/whoops Sat Nov 16 21:56:16 2019 +0000 @@ -1,1 +1,1 @@ -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}»" +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}»"