Mercurial > repo
view bin/newcmd @ 6929:b6b69ebd1306
<b_jonas> slashlearn syntactic sugar/Syntactic sugar causes semicolon cancer
author | HackBot |
---|---|
date | Mon, 22 Feb 2016 09:42:53 +0000 |
parents | b76e90844898 |
children | 73e048cb5d2f |
line wrap: on
line source
if [ -a "bin/${1%% = *}" ];then exec echo "${1%% = *}: Already exists.";fi;echo "${1#* = }" > "bin/${1%% = *}";chmod +x "bin/${1%% = *}"