diff options
author | Case Duckworth | 2020-05-31 08:47:46 -0500 |
---|---|---|
committer | Case Duckworth | 2020-05-31 08:47:46 -0500 |
commit | 27e7ce4b3e422bfd69e71cae37b49875c76679b7 (patch) | |
tree | de5b536adb18a5bb6b9cd8cdef4c537a154309c7 | |
parent | Version bump (diff) | |
download | bollux-27e7ce4b3e422bfd69e71cae37b49875c76679b7.tar.gz bollux-27e7ce4b3e422bfd69e71cae37b49875c76679b7.zip |
Log, don't echo
-rwxr-xr-x | bollux | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bollux b/bollux index 93874c1..177504e 100755 --- a/bollux +++ b/bollux | |||
@@ -251,7 +251,7 @@ remove_dot_segments() { # 5.2.4 | |||
251 | elif [[ "$input" == . || "$input" == .. ]]; then | 251 | elif [[ "$input" == . || "$input" == .. ]]; then |
252 | input= | 252 | input= |
253 | else | 253 | else |
254 | [[ $input =~ ^(/?[^/]*)(/?.*)$ ]] || echo NOMATCH >&2 | 254 | [[ $input =~ ^(/?[^/]*)(/?.*)$ ]] || log debug NOMATCH |
255 | output="$output${BASH_REMATCH[1]}" | 255 | output="$output${BASH_REMATCH[1]}" |
256 | input="${BASH_REMATCH[2]}" | 256 | input="${BASH_REMATCH[2]}" |
257 | fi | 257 | fi |
@@ -416,7 +416,7 @@ mklesskey() { | |||
416 | } | 416 | } |
417 | 417 | ||
418 | normalize_crlf() { | 418 | normalize_crlf() { |
419 | shopt -s extglob | 419 | shopt -s extglob |
420 | while IFS= read -r; do | 420 | while IFS= read -r; do |
421 | printf '%s\n' "${REPLY//$'\r'?($'\n')/}" | 421 | printf '%s\n' "${REPLY//$'\r'?($'\n')/}" |
422 | done | 422 | done |