Skip to content

Commit

Permalink
fix: entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Vacek committed Jan 11, 2021
1 parent 55dffe7 commit 4c9d3ac
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
#!/bin/sh
set -e

if [[ $1 != "${1%bash}" || $1 != "${1%sh}" ]]; then
exec "$@"
if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then
echo dx-scanner run --ci -r $@
set -- dx-scanner run --ci -r "$@"
fi

echo "Run DX Scanner"

if [[ $1 != "${1#dx-scanner}" || $1 != "${1#dxs}" || $1 != "${1#dxscanner}" ]]; then
echo $@
echo $@
exec "$@"
else
echo dx-scanner run --ci -r $@
exec dx-scanner run --ci -r "$@"
fi

echo $@
exec "$@"

0 comments on commit 4c9d3ac

Please sign in to comment.