Update install.sh
Adding Desktop directory check.
This commit is contained in:
		@@ -327,6 +327,7 @@ compile_vuejs() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
create_desktop() {
 | 
					create_desktop() {
 | 
				
			||||||
    # Create desktop icon to lauch TinyCheck in a browser
 | 
					    # Create desktop icon to lauch TinyCheck in a browser
 | 
				
			||||||
 | 
					    if [[ -d "/home/$CURRENT_USER/Desktop/" ]]; then
 | 
				
			||||||
    echo -e "\e[39m[+] Create Desktop icon under /home/${CURRENT_USER}/Desktop\e[39m"
 | 
					    echo -e "\e[39m[+] Create Desktop icon under /home/${CURRENT_USER}/Desktop\e[39m"
 | 
				
			||||||
    cat >"/home/$CURRENT_USER/Desktop/tinycheck.desktop" <<EOL
 | 
					    cat >"/home/$CURRENT_USER/Desktop/tinycheck.desktop" <<EOL
 | 
				
			||||||
#!/usr/bin/env xdg-open
 | 
					#!/usr/bin/env xdg-open
 | 
				
			||||||
@@ -340,6 +341,7 @@ Name=TinyCheck
 | 
				
			|||||||
Comment=Launcher for the TinyCheck frontend
 | 
					Comment=Launcher for the TinyCheck frontend
 | 
				
			||||||
Icon=/usr/share/tinycheck/app/frontend/src/assets/icon.png
 | 
					Icon=/usr/share/tinycheck/app/frontend/src/assets/icon.png
 | 
				
			||||||
EOL
 | 
					EOL
 | 
				
			||||||
 | 
					     fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cleaning() {
 | 
					cleaning() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user