mirror of
				https://github.com/byReqz/stocheck.git
				synced 2025-11-03 20:21:30 +00:00 
			
		
		
		
	fixed updating without root
This commit is contained in:
		@@ -8,7 +8,7 @@ if [[ ! "$0" =~ "bash" ]];then
 | 
			
		||||
    echo ""
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
if [[ $(whoami) != "root" ]];then
 | 
			
		||||
if [[ $(whoami) != "root" ]] && [[ "$1" != "-u" ]];then
 | 
			
		||||
  echo "-----------------------------------------"
 | 
			
		||||
  echo "ERROR: This script should be run as root."
 | 
			
		||||
  echo "-----------------------------------------"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user