updated install_binary.sh

pull/2/head
Hari Sekhon 3 years ago
parent f7386a7426
commit 9d8de44d17

@ -101,6 +101,12 @@ if ! [[ "$destination" =~ ^/ ]]; then
destination=~/bin/"$destination"
fi
fi
install_path="${destination%/*}"
if [ -e "$install_path" ] && ! [ -d "$install_path" ]; then
die "ERROR: install path $install_path is not a directory, aborting!"
fi
mkdir -pv "$install_path"
echo
timestamp "Moving to bin"
unalias mv &>/dev/null || :

Loading…
Cancel
Save