Skip to content

Commit

Permalink
Convert cc_prefix.sh and gcc-rtags-hook.sh to POSIX sh
Browse files Browse the repository at this point in the history
While here, silence shellcheck warnings.
  • Loading branch information
Jehops authored and casch-at committed Feb 25, 2019
1 parent e4db42e commit 40f5430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/cc_prefix.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh

[ -z "$RTAGS_DISABLED" ] && [ -x "$(which rc)" ] && rc --silent --compile "$@" &
[ -z "$RTAGS_DISABLED" ] && [ -x "$(command -v rc)" ] && rc --silent --compile "$@" &
[ "$RTAGS_RMAKE" ] && exit 1
compiler="$1"
shift
Expand Down
4 changes: 2 additions & 2 deletions bin/gcc-rtags-hook.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh

if [ -z "$RTAGS_DISABLED" ] && [ -x "$(which rc)" ]; then
if [ -z "$RTAGS_DISABLED" ] && [ -x "$(command -v rc)" ]; then
rc --silent --compile "$ICECC_CXX" "$@" &
fi

Expand Down

0 comments on commit 40f5430

Please sign in to comment.