]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
dmaketgz: compacter
authorDaniel Stenberg <daniel@haxx.se>
Tue, 16 Apr 2024 21:54:08 +0000 (23:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Apr 2024 05:58:16 +0000 (07:58 +0200)
Removes the need for disabling shellcheck warnings.

Follow-up to d28f74913c2
Proposed-by: Viktor Szakats
Closes #13391

scripts/dmaketgz

index e361d35b778a3fc43de79c364ef16e1d3675bb84..6603a38ec7f65db2ff2888e0839163aa028d93d9 100755 (executable)
@@ -25,6 +25,8 @@
 #
 ###########################################################################
 
+set -eu
+
 version="${1:-}"
 
 if [ -z "$version" ]; then
@@ -39,14 +41,10 @@ docker build \
        --build-arg GID="$(id -g)" \
        -t curl/curl .
 
-run="run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl"
-
-# shellcheck disable=SC2086
-# "Double quote to prevent globbing and word splitting" on the $run use below
-docker $run autoreconf -fi
-# shellcheck disable=SC2086
-docker $run ./configure --without-ssl --without-libpsl
-# shellcheck disable=SC2086
-docker $run make -sj8
-# shellcheck disable=SC2086
-docker $run ./maketgz $version
+docker run --rm -it -u "$(id -u):$(id -g)" \
+       -v "$(pwd):/usr/src" -w /usr/src curl/curl sh -c "
+  set -e
+  autoreconf -fi
+  ./configure --without-ssl --without-libpsl
+  make -sj8
+  ./maketgz $version"