Fix shellcheck warnings

This commit is contained in:
Andreas Schnebinger 2021-05-02 10:38:51 +02:00
parent ebe5fa7809
commit 61dd645c63
3 changed files with 13 additions and 13 deletions

View file

@ -2,10 +2,10 @@
# Only there to make jhbuild happy # Only there to make jhbuild happy
if [ -z $MESON ]; then if [ -z "$MESON" ]; then
MESON=`which meson` MESON=$(which meson)
fi fi
if [ -z $MESON ]; then if [ -z "$MESON" ]; then
echo "error: Meson not found." echo "error: Meson not found."
echo "Install meson to configure and build Pipewire. If meson" \ echo "Install meson to configure and build Pipewire. If meson" \
"is already installed, set the environment variable MESON" \ "is already installed, set the environment variable MESON" \

View file

@ -5,19 +5,19 @@
LIST="" LIST=""
for i in `find spa/include -name '*.h' | sed s#spa/include/##`; for i in $(find spa/include -name '*.h' | sed s#spa/include/##);
do do
[ -f $PREFIX/include/spa-0.2/$i ] || LIST="$i $LIST" [ -f "$PREFIX/include/spa-0.2/$i" ] || LIST="$i $LIST"
done done
for i in `find src/extensions -name '*.h' | sed s#src/#pipewire/#`; for i in $(find src/extensions -name '*.h' | sed s#src/#pipewire/#);
do do
[ -f $PREFIX/include/pipewire-0.3/$i ] || LIST="$i $LIST" [ -f "$PREFIX/include/pipewire-0.3/$i" ] || LIST="$i $LIST"
done done
for i in `find src/pipewire -name '*.h' -a -not -name '*private.h' | sed s#src/##`; for i in $(find src/pipewire -name '*.h' -a -not -name '*private.h' | sed s#src/##);
do do
[ -f $PREFIX/include/pipewire-0.3/$i ] || LIST="$i $LIST" [ -f "$PREFIX/include/pipewire-0.3/$i" ] || LIST="$i $LIST"
done done
for i in $LIST; for i in $LIST;

View file

@ -14,11 +14,11 @@ while getopts ":b:v:" opt; do
;; ;;
\?) \?)
echo "Invalid option: -${OPTARG}" echo "Invalid option: -${OPTARG}"
exit -1 exit 1
;; ;;
:) :)
echo "Option -${OPTARG} requires an argument" echo "Option -${OPTARG} requires an argument"
exit -1 exit 1
;; ;;
esac esac
done done
@ -28,9 +28,9 @@ if [ -z "${BUILDDIR}" ]; then
echo "Using default build directory: ${BUILDDIR}" echo "Using default build directory: ${BUILDDIR}"
fi fi
if [ ! -d ${BUILDDIR} ]; then if [ ! -d "${BUILDDIR}" ]; then
echo "Invalid build directory: ${BUILDDIR}" echo "Invalid build directory: ${BUILDDIR}"
exit -1 exit 1
fi fi
# the config file read by the daemon # the config file read by the daemon