summaryrefslogtreecommitdiff
path: root/scorsh.sh
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-07 14:14:47 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-07 14:14:47 +0100
commit200e2f0328b6cfc6965d5399d7750df19eec6144 (patch)
tree147de793fd1a02eafbadbdd667a848bca074543b /scorsh.sh
parentb31fe15e0d13f9064e26b117541633496c0c3307 (diff)
completed refactoring from tags to commands0.3
Diffstat (limited to 'scorsh.sh')
-rwxr-xr-xscorsh.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scorsh.sh b/scorsh.sh
index 4a3a0bd..fefac2d 100755
--- a/scorsh.sh
+++ b/scorsh.sh
@@ -7,7 +7,7 @@
## func
build_command(){
- TAG=$1
+ CMD=$1
shift
ARGS=$@
@@ -22,7 +22,7 @@ build_command(){
scorsh:
[
{
- s_tag: "$TAG",
+ s_cmd: "$CMD",
s_args: [${ARGLIST}]
}
]
@@ -34,7 +34,7 @@ EOF
if [ $# -le 0 ]; then
- echo "Usage: $0 <tag> [<arg>...]"
+ echo "Usage: $0 <cmd> [<arg>...]"
exit 1
fi