handle blank url in install-wizard.sh

This commit is contained in:
Jorge Morante 2025-02-02 14:12:46 +01:00
parent bbbca3cd4d
commit 41dbe3dba5

View file

@ -70,6 +70,11 @@ function download_binary() {
echo "Downloading binary from $url"
if [[ -z "$url" ]]; then
echo "Could not find a release for tmux-fingers. Please try again later."
exit 1
fi
# download binary to bin/tmux-fingers
curl -L $url -o $CURRENT_DIR/bin/tmux-fingers
chmod a+x $CURRENT_DIR/bin/tmux-fingers