Mercurial > repo
changeset 7937:ff34e0948c3e
<shachaf> ` mv bin/derp/mk bin/mk; rmdir bin/derp
author | HackBot |
---|---|
date | Sat, 07 May 2016 01:53:00 +0000 |
parents | 590419ef61ff |
children | b4d8bd1a2c8f |
files | bin/derp/mk bin/mk |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/derp/mk Sat May 07 01:45:45 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"
--- a/bin/mk Sat May 07 01:45:45 2016 +0000 +++ b/bin/mk Sat May 07 01:53:00 2016 +0000 @@ -1,1 +1,1 @@ -erro "Surely you ment rm, right? the real me is in bin/derp" +[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"