summaryrefslogtreecommitdiff
path: root/osi-shell
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-16 01:32:59 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-16 01:36:18 -0400
commit540db8eef89299b5827bca8a5140ae0c3151181c (patch)
tree88153cb6ab790579cdd2f31273a348bf7b4c5ec7 /osi-shell
parent93ba79d3eacfd1ba225d309a226540619f370b05 (diff)
run osi stuff through shellcheck
Disable SC2064 because we use @Q rather than deferred expansion. The only real issue found is adding `-r` to `read` in osi-shell.
Diffstat (limited to 'osi-shell')
-rwxr-xr-xosi-shell4
1 files changed, 2 insertions, 2 deletions
diff --git a/osi-shell b/osi-shell
index 1230f19..0b2df27 100755
--- a/osi-shell
+++ b/osi-shell
@@ -4,7 +4,7 @@ declare -r NAME=osi-run
declare -r VERSION=20180814
set -euE
-source "${BASH_SOURCE[0]%/*}/lib/osi.sh"
+source ./lib/osi.sh
main() {
local arg_mode=main
@@ -65,7 +65,7 @@ main() {
-serial stdio \
-serial file:"$tmp/exit" \
< <(cat <"$tmp/sync" >/dev/null; cat; while sleep 0.1; do printf '\x04'; done) \
- > >(read -N1 c; printf '%s' "$c"; :>"$tmp/sync"; exec cat)
+ > >(read -r -N1 c; printf '%s' "$c"; :>"$tmp/sync"; exec cat)
return "$(sed 's/\r$//' <"$tmp/exit")"
;;