Mercurial > repo
diff bin/mk @ 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 |
line wrap: on
line diff
--- 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"