Skip to content
Permalink
Browse files

Convert cc_prefix.sh and gcc-rtags-hook.sh to POSIX sh

While here, silence shellcheck warnings.
  • Loading branch information...
Jehops authored and cslux committed Jun 24, 2018
1 parent e4db42e commit 40f5430c289a9232d7bc7b7407a0ee170b423466
Showing with 4 additions and 4 deletions.
  1. +2 −2 bin/cc_prefix.sh
  2. +2 −2 bin/gcc-rtags-hook.sh
@@ -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
@@ -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

0 comments on commit 40f5430

Please sign in to comment.
You can’t perform that action at this time.