diff options
author | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-03-08 21:38:31 +0100 |
---|---|---|
committer | Guillaume Lambert <guillaume.lambert@orange.com> | 2021-06-15 20:18:11 +0200 |
commit | 62178a49cc9e4088019d426636657d9f2980d242 (patch) | |
tree | adc2fb79281e74a6ac7a1b6ae53235792526a66d /kubernetes/robot/demo-k8s.sh | |
parent | 38634d6ef44d9d4954e553445451992e33c1f2f5 (diff) |
[COMMON] Fix a few bashisms
pointed out by checkbashisms:
- variable name HOSTNAME
- source instead of .
- variable increments
- sleep with suffix
And migrate a few shebangs to /bin/sh
Issue-ID: OOM-2643
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I82981bcff17e88cf824935b841ce37a585ddde00
Diffstat (limited to 'kubernetes/robot/demo-k8s.sh')
-rwxr-xr-x | kubernetes/robot/demo-k8s.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/robot/demo-k8s.sh b/kubernetes/robot/demo-k8s.sh index 099f80ccff..5e4e216c95 100755 --- a/kubernetes/robot/demo-k8s.sh +++ b/kubernetes/robot/demo-k8s.sh @@ -222,7 +222,7 @@ ETEHOME=/var/opt/ONAP if [ $execscript ]; then for script in $(ls -1 "$DIR/$SCRIPTDIR"); do - [ -f "$DIR/$SCRIPTDIR/$script" ] && [ -x "$DIR/$SCRIPTDIR/$script" ] && source "$DIR/$SCRIPTDIR/$script" + [ -f "$DIR/$SCRIPTDIR/$script" ] && [ -x "$DIR/$SCRIPTDIR/$script" ] && . "$DIR/$SCRIPTDIR/$script" done fi |