Skip to content

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 <andreas.ulm@root360.de>
@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.

2 participants