You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			31 lines
		
	
	
		
			697 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			31 lines
		
	
	
		
			697 B
		
	
	
	
		
			Bash
		
	
#!/bin/bash
 | 
						|
 | 
						|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
 | 
						|
 | 
						|
function error {
 | 
						|
  echo -e "\\e[91m$1\\e[39m"
 | 
						|
  exit 1
 | 
						|
}
 | 
						|
 | 
						|
# Get dependencies
 | 
						|
"${DIRECTORY}/pkg-install" "yad" "$(dirname "$0")" || exit 1
 | 
						|
 | 
						|
rm -rf ~/update-buddy
 | 
						|
git clone https://github.com/Botspot/update-buddy || error 'Failed to download update-buddy repository!'
 | 
						|
 | 
						|
mkdir -p ~/.config/autostart
 | 
						|
echo "[Desktop Entry]
 | 
						|
Name=Update Buddy
 | 
						|
Exec=$HOME/update-buddy/onstartup.sh
 | 
						|
Type=Application
 | 
						|
X-GNOME-Autostart-enabled=true
 | 
						|
Hidden=false
 | 
						|
NoDisplay=false" > ~/.config/autostart/update-buddy.desktop
 | 
						|
 | 
						|
chmod +x $HOME/update-buddy/onstartup.sh
 | 
						|
 | 
						|
#first time run
 | 
						|
setsid $HOME/update-buddy/onstartup.sh
 | 
						|
 | 
						|
 |