Skip to content

Commit 88a3c66

Browse files
authored
Update naming conventions in tools/rapids-extract-conda-files (#123)
1 parent 15edc0e commit 88a3c66

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/rapids-extract-conda-files

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ set -eo pipefail
55
export RAPIDS_SCRIPT_NAME="rapids-extract-conda-files"
66

77
if [ -z "$1" ]; then
8-
rapids-echo-stderr "Must specify input argument: TARBALL_DIR"
8+
rapids-echo-stderr "Must specify input argument: CONDA_PKG_DIR"
99
exit 1
1010
fi
1111

12-
# dir that the extracted tarball are in
13-
tarball_dir="$1"
12+
# dir that the extracted conda packages are in
13+
conda_pkg_dir="$1"
1414
{
15-
untar_dest=$(mktemp -d)
16-
mkdir -p "${untar_dest}"
17-
cd "${untar_dest}"
18-
find "${tarball_dir}" \( -name "*.tar.bz2" -o -name "*.conda" \) -type f -print0 | xargs -0 -n 1 cph extract --dest .
15+
conda_pkg_dest=$(mktemp -d)
16+
mkdir -p "${conda_pkg_dest}"
17+
cd "${conda_pkg_dest}"
18+
find "${conda_pkg_dir}" \( -name "*.tar.bz2" -o -name "*.conda" \) -type f -print0 | xargs -0 -n 1 cph extract --dest .
1919
} >&2
20-
echo -n "${untar_dest}"
20+
echo -n "${conda_pkg_dest}"

0 commit comments

Comments
 (0)