Skip to content

Commit 40f5430

Browse files
Jehopscasch-at
authored andcommitted
Convert cc_prefix.sh and gcc-rtags-hook.sh to POSIX sh
While here, silence shellcheck warnings.
1 parent e4db42e commit 40f5430

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bin/cc_prefix.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

3-
[ -z "$RTAGS_DISABLED" ] && [ -x "$(which rc)" ] && rc --silent --compile "$@" &
3+
[ -z "$RTAGS_DISABLED" ] && [ -x "$(command -v rc)" ] && rc --silent --compile "$@" &
44
[ "$RTAGS_RMAKE" ] && exit 1
55
compiler="$1"
66
shift

bin/gcc-rtags-hook.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

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

0 commit comments

Comments
 (0)