mkdir-p for the caller

This commit is contained in:
Michael Vines 2018-12-09 08:41:40 -08:00
parent db3cca7fbe
commit 7ae9d9690b
1 changed files with 1 additions and 5 deletions

View File

@ -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