Resolve SC2162: 'read without -r mangles backslashes'
More information: https://github.com/koalaman/shellcheck/wiki/SC2162 http://wiki.bash-hackers.org/commands/builtin/read
This commit is contained in:
@@ -24,7 +24,7 @@ output=""
|
||||
if [[ -f "$PHASE_FILE_PATH" ]]; then
|
||||
DONE=false
|
||||
until $DONE; do
|
||||
read line || DONE=true
|
||||
read -r line || DONE=true
|
||||
|
||||
[[ ! -n "$line" ]] && continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user