We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969e640 commit fb25f5fCopy full SHA for fb25f5f
1 file changed
contrib/autotools-patches/apply-all.sh
@@ -8,7 +8,8 @@
8
# Based on Debian SID baseline files as of December 2021.
9
#
10
11
-patchesdir="$(pwd)"
+patchesdir="$(dirname "$BASH_SOURCE")" || exit 2
12
+test -n "$patchesdir" || exit 2
13
14
patches=(
15
0003-Pass-various-flags-to-GCC.patch
@@ -23,7 +24,7 @@ patches=(
23
24
25
failed=( )
26
-cd ../.. || exit 1
27
+cd "${patchesdir}/../.." || exit 1
28
29
for patch in ${patches[@]}; do
30
patch -N -p1 --no-backup-if-mismatch -r - -i "${patchesdir}/${patch}" || failed+=("$patch")
0 commit comments