Mercurial > repo
view bin/mk @ 8335:1d932c8feb0c
<shachaf> mk canary//cat: canary: No such file or directory
author | HackBot |
---|---|
date | Sun, 05 Jun 2016 01:00:01 +0000 |
parents | ff34e0948c3e |
children |
line wrap: on
line source
[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$(echo-p "$key")" && echo "$key"