Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Toolchain
sgc
Commits
d0c76394
Commit
d0c76394
authored
Oct 09, 2017
by
Philipp Nowinski
Browse files
[FEATURE] allow execution of node scripts in sgc-scripts directory
parent
d5183667
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
core/cli.sh
core/cli.sh
+2
-0
No files found.
core/cli.sh
View file @
d0c76394
...
...
@@ -24,6 +24,8 @@ elif [ -e "sgc-core/core/modules/$1.sh" ]; then
./sgc-core/core/modules/
$1
.sh
elif
[
-e
"./sgc-scripts/
$1
.sh"
]
;
then
./sgc-scripts/
$1
.sh
elif
[
-e
"./sgc-scripts/
$1
.js"
]
;
then
node ./sgc-scripts/
$1
.js
elif
[
-e
"./sgc-core/core/modules/
$1
.js"
]
;
then
node ./sgc-core/core/modules/
$1
.js
$@
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment