Mercurial > repo
changeset 6657:6412f71662f4
<fizzie> ` sed -i -e \'s|$0|"mk[x]"|\' bin/mk
author | HackBot |
---|---|
date | Tue, 09 Feb 2016 00:36:27 +0000 |
parents | ac0b17a58520 |
children | c1477023c681 |
files | bin/mk |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/mk Tue Feb 09 00:34:29 2016 +0000 +++ b/bin/mk Tue Feb 09 00:36:27 2016 +0000 @@ -1,1 +1,1 @@ -[[ "$1" == ?*//* ]] || { echo usage: $0 file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$key" && echo "$key" +[[ "$1" == ?*//* ]] || { echo usage: "mk[x]" file//contents >&2; exit 1; }; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$key" && echo "$key"