mirror of
https://github.com/unraid/webgui.git
synced 2026-02-26 04:08:41 -06:00
Minor code adjustment
This commit is contained in:
@@ -54,7 +54,7 @@ case "$1" in
|
||||
echo "$DAEMON running"
|
||||
else
|
||||
echo "$DAEMON not running"
|
||||
if [ -f $PID ]; then
|
||||
if [[ -f $PID ]]; then
|
||||
rm -f $PID
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -60,7 +60,7 @@ vmlist(){
|
||||
waitfor(){
|
||||
local C=0
|
||||
while [[ $C -lt $TIMEOUT && $(virsh list --state-$1 | awk "NR>2 && /${2:-^.+$}/" | wc -l) -gt 0 ]]; do
|
||||
if [ $C -eq 0 ]; then # echo Timeout info just one time and only if virsh returned something
|
||||
if [[ $C -eq 0 ]]; then # echo Timeout info just one time and only if virsh returned something
|
||||
log "Waiting $TIMEOUT seconds for VMs with state: $1"
|
||||
fi
|
||||
((C++))
|
||||
|
||||
Reference in New Issue
Block a user