Skip to content

Instantly share code, notes, and snippets.

@leobrines
Created September 9, 2019 01:19
Show Gist options
  • Save leobrines/27899354a8629adf6fe252f40c40dfb1 to your computer and use it in GitHub Desktop.
Save leobrines/27899354a8629adf6fe252f40c40dfb1 to your computer and use it in GitHub Desktop.
Bash Script For Install Gdrive
#!/bin/bash
gdrive_name=gdrive
gdrive_bin=/usr/bin/$gdrive_name
if [ -f $gdrive_name ] ; then
echo "$gdrive_name already existe, probably it's installed..."
exit 0
else
echo "Downloading Google Drive | Script for Linux x64..."
wget -O $gdrive_name https://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA &> /dev/null
echo "Gdrive downloaded!"
chmod +x $gdrive_name
sudo mv $gdrive_name $gdrive_bin
echo "Running $gdrive_name..."
gdrive about
echo "Ready! Use 'gdrive list' command to display your files id"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment