mirror of
				https://github.com/byReqz/stocheck.git
				synced 2025-11-04 04:31:29 +00:00 
			
		
		
		
	fix updater when checking remote machine
This commit is contained in:
		@@ -1,11 +1,12 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
# license: gpl-3
 | 
					# license: gpl-3
 | 
				
			||||||
 | 
					if [[ ! "$0" =~ "bash" ]];then
 | 
				
			||||||
if [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ -z $1 ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ $1 != "--update" ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ $1 != "-u" ]];then
 | 
					  if [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ -z $1 ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ $1 != "--update" ]] || [[ $(curl -s https://raw.githubusercontent.com/byReqz/stocheck/main/hash) != $(md5sum $0 | cut -c -32) ]] && [[ $1 != "-u" ]];then
 | 
				
			||||||
    echo "#############################################"
 | 
					    echo "#############################################"
 | 
				
			||||||
    echo -e "\e[4mnote: newer version detected, use -u to update\e[0m"
 | 
					    echo -e "\e[4mnote: newer version detected, use -u to update\e[0m"
 | 
				
			||||||
    echo "#############################################"
 | 
					    echo "#############################################"
 | 
				
			||||||
    echo ""
 | 
					    echo ""
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
while [ -z "$1" ]; do
 | 
					while [ -z "$1" ]; do
 | 
				
			||||||
  raidcheck="$(lspci | grep -E 'LSI|3Ware|Adaptec|Smartraid')"
 | 
					  raidcheck="$(lspci | grep -E 'LSI|3Ware|Adaptec|Smartraid')"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user