From 7ae9d9690b61dcd06703f67797f67967004fe9e9 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 9 Dec 2018 08:41:40 -0800 Subject: [PATCH] mkdir-p for the caller --- scripts/install-native-programs.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/install-native-programs.sh b/scripts/install-native-programs.sh index 38ac3d807..1646b0945 100755 --- a/scripts/install-native-programs.sh +++ b/scripts/install-native-programs.sh @@ -15,14 +15,10 @@ if [[ -z $installDir ]]; then exit 1 fi -if [[ ! -d $installDir ]]; then - echo "Not a directory: $installDir" - exit 1 -fi - for dir in "$SOLANA_ROOT"/programs/native/*; do for program in echo "$SOLANA_ROOT"/target/"$variant"/deps/lib{,solana_}"$(basename "$dir")"{,_program}.{so,dylib,dll}; do if [[ -f $program ]]; then + mkdir -p "$installDir" rm -f "$installDir/$(basename "$program")" cp -v "$program" "$installDir" fi