From 6205a3ad24f4ecd1bd4c44e247faf7fbcb40e6ac Mon Sep 17 00:00:00 2001 From: Natalie Perlin Date: Thu, 12 Oct 2023 10:06:53 -0400 Subject: [PATCH] update libs/build_nceplibs.sh to create nested directories with mkdir -p --- libs/build_nceplibs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/build_nceplibs.sh b/libs/build_nceplibs.sh index 2df600fb..d41fca2d 100755 --- a/libs/build_nceplibs.sh +++ b/libs/build_nceplibs.sh @@ -157,7 +157,7 @@ if $MODULES; then if [[ $OVERWRITE =~ [yYtT] ]]; then echo "WARNING: $prefix EXISTS: OVERWRITING!" $SUDO rm -rf $prefix - $SUDO mkdir $prefix + $SUDO mkdir -p $prefix else echo "WARNING: $prefix EXISTS, SKIPPING" exit 0 @@ -304,7 +304,7 @@ if [[ ${name} == "prod_util" && "$(printf '%s\n' "$min_version" "$install_as" done if [ $? -eq 0 ]; then chmod 755 ../ush/* && cp -r ../ush/* ../build/bin/. - [[ ! -d $prefix ]] && mkdir $prefix + [[ ! -d $prefix ]] && mkdir -p $prefix mv ../build/bin $prefix/. fi [[ $USE_SUDO =~ [yYtT] ]] && sudo -- bash -c "export PATH=$PATH"