view bin/newcmd @ 11258:edaf8efd6e21

<oerjan> learn This is something people on the channel like to talk about. We\'re often unsure what this is, though.
author HackBot
date Sat, 09 Dec 2017 11:45:07 +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%% = *}"