Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ case $OS in
;;
esac

# Check for install dependency availability
if ! [ -x "$(command -v curl)" ]; then
echo "❌ curl is required to execute the installation. Please install it and run the installer again!"
exit
fi
if ! [ -x "$(command -v unzip)" ]; then
echo "❌ Unzip is required to execute the installation. Please install it and run the installer again!"
exit
fi
if ! [ -x "$(command -v sudo)" ]; then
echo "❌ sudo is required to execute the installation. Please install it and run the installer again!"
exit
fi
if ! [ -x "$(command -v install)" ]; then
echo "❌ install is required to execute the installation. Please install it and run the installer again!"
exit
fi

download_url=$(curl -L -s https://api.github.com/repos/getdeck/getdeck/releases/latest | grep '"browser_download_url": ".*'$OS'.*"' | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*")
file_name=$(echo $download_url | grep -oE '[^/]+$')
curl -L $download_url -o /tmp/$file_name
Expand Down