updated install_binary.sh

pull/2/head
Hari Sekhon 3 years ago
parent 78c8adbfbe
commit 0b2fed5673

@ -75,6 +75,9 @@ if has_tarball_extension "$package"; then
fi fi
download_file="$binary" download_file="$binary"
echo echo
elif [[ "$package" =~ \.zip$ ]]; then
unzip "$download_file"
download_file="$binary"
fi fi
timestamp "Setting executable" timestamp "Setting executable"
@ -105,7 +108,7 @@ install_path="${destination%/*}"
if [ -e "$install_path" ] && ! [ -d "$install_path" ]; then if [ -e "$install_path" ] && ! [ -d "$install_path" ]; then
die "ERROR: install path $install_path is not a directory, aborting!" die "ERROR: install path $install_path is not a directory, aborting!"
fi fi
mkdir -pv "$install_path" mkdir -p -v "$install_path"
echo echo
timestamp "Moving to bin" timestamp "Moving to bin"

Loading…
Cancel
Save