Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bram Daams
sch
Commits
c9154d0e
Commit
c9154d0e
authored
Jan 20, 2020
by
Bram Daams
Browse files
shell wrapper
parent
1972fadf
Pipeline
#36609
passed with stage
in 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sch.sh
0 → 100755
View file @
c9154d0e
#!/bin/bash
command
=
"
$2
"
date
>>
/tmp/test
echo
"command: "
"
$command
"
>>
/tmp/test
if
grep
-q
'JOB_ID'
<<<
"
$command
"
then
echo
"do something with sch"
>>
/tmp/test
else
echo
"just run the command, no stuff with sch"
>>
/tmp/test
fi
eval
"
$command
"
Write
Preview
Supports
Markdown
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