We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e430cd2 commit d2c0e7bCopy full SHA for d2c0e7b
src/functions/curl_download_untarj.sh
@@ -0,0 +1,16 @@
1
+#!/usr/bin/env -S bash --noprofile --norc -o errexit -o pipefail -o noclobber -o nounset -o allexport
2
+
3
+source curl_download_stdout.sh
4
5
+curl_download_untarj() {
6
+ local url=$1
7
+ local strip=$2
8
+ local target=$3
9
+ local bin_path=$4
10
+ curl_download_stdout "${url}" | tar \
11
+ -xj \
12
+ -f '-' \
13
+ --strip-components="${strip}" \
14
+ -C "${target}" \
15
+ "${bin_path}"
16
+}
0 commit comments