Mercurial > repo
changeset 6648:5e5627f9e3cb
<fizzie> ` sed -i -e \'s|exit 1|(echo usage: $0 file//contents; exit 1)|\' bin/mk
author | HackBot |
---|---|
date | Tue, 09 Feb 2016 00:26:37 +0000 |
parents | 4aa157eb793d |
children | 6c08430faa9e |
files | bin/mk |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/mk Tue Feb 09 00:21:09 2016 +0000 +++ b/bin/mk Tue Feb 09 00:26:37 2016 +0000 @@ -1,1 +1,1 @@ -[[ "$1" == ?*//* ]] || exit 1; key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$key" && echo "$key" +[[ "$1" == ?*//* ]] || (echo usage: $0 file//contents; exit 1); key="${1%%//*}"; value="${1#*//}"; echo "$value" > "$key" && echo "$key"