mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
bash: fix issues identified through shellcheck
Signed-off-by: a1346054 <36859588+a1346054@users.noreply.github.com>
This commit is contained in:
parent
844ad9ad79
commit
d6e93b7ee0
14
autogen.sh
14
autogen.sh
@ -1,16 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Run this to generate all the initial makefiles, etc.
|
||||
|
||||
test -n "$srcdir" || srcdir=`dirname "$0"`
|
||||
test -n "$srcdir" || srcdir=$(dirname "$0")
|
||||
test -n "$srcdir" || srcdir=.
|
||||
|
||||
olddir=`pwd`
|
||||
olddir=$(pwd)
|
||||
cd "$srcdir"
|
||||
|
||||
AUTORECONF=`which autoreconf`
|
||||
if test -z $AUTORECONF; then
|
||||
echo "*** No autoreconf found, please install it ***"
|
||||
exit 1
|
||||
AUTORECONF=$(which autoreconf)
|
||||
if test -z "$AUTORECONF"; then
|
||||
echo "*** No autoreconf found, please install it ***"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# INSTALL are required by automake, but may be deleted by clean
|
||||
@ -26,7 +26,7 @@ sed -e 's,$(libglnx_srcpath),subprojects/libglnx,g' < subprojects/libglnx/Makefi
|
||||
sed -e 's,$(bwrap_srcpath),subprojects/bubblewrap,g' < subprojects/bubblewrap/Makefile-bwrap.am >subprojects/bubblewrap/Makefile-bwrap.am.inc
|
||||
|
||||
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
|
||||
if test -z $GTKDOCIZE; then
|
||||
if test -z "$GTKDOCIZE"; then
|
||||
echo "*** You don't have gtk-doc installed, and thus won't be able to generate the documentation. ***"
|
||||
rm -f gtk-doc.make
|
||||
cat > gtk-doc.make <<EOF
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script is intended to be run by flatpak-sideload-usb-repo.service
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user