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