Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed syntax based on shellcheck (#27) #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

root360-AndreasUlm
Copy link

Fixed issues reported by shellcheck (https://github.com/koalaman/shellcheck/wiki) to improve security and POSIX shell interoperability.

(part of #27)

@root360-AndreasUlm
Copy link
Author

rebased branch

Fixed issues reported by shellcheck
(https://github.com/koalaman/shellcheck/wiki) to improve security and
POSIX shell interoperability.

(part of cloudflare#27)

Signed-off-by: Andreas Ulm <[email protected]>
@root360-AndreasUlm
Copy link
Author

rebased branch to latest master

@@ -1,7 +1,8 @@
#!/bin/sh
#!/bin/bash
Copy link
Contributor

@konstruktoid konstruktoid Mar 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will break unless bash is added to the image.

$ git diff run.sh 
diff --git a/run.sh b/run.sh
index dcbcdf2..a8833ca 100755
--- a/run.sh
+++ b/run.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 current_time=$(date "+%Y.%m.%d-%H.%M")
 if [[ -z $upload ]]
$ docker run -ti --entrypoint=/bin/sh flan_scan
/ # ls -l /bin/bash
ls: /bin/bash: No such file or directory
/ # exit
$ make html
docker run --name flan_1585682201 -v "xxx/Github/flan/shared:/shared:Z" -e format=html flan_scan
standard_init_linux.go:211: exec user process caused "no such file or directory"
make: *** [html] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants