Script Refactoring

pull/2148/head
skiffer-git 2 years ago
parent 86cd9097a6
commit ae6c3cc349

@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"time"
)
func main() {
@ -15,4 +16,6 @@ func main() {
// Print the values of the flags
fmt.Printf("args: -i %d -c %s\n", *index, *config)
time.Sleep(600 * time.Second)
}

@ -36,12 +36,11 @@ for binary in "${!binaries[@]}"; do
result=$(openim::util::check_process_names "$full_path" "$expected_count")
echo $result 1111111111111111112222
if [ "$result" -eq 0 ]; then
echo "ok $binary"
else
echo "failed $binary, miss $result "
fi
if [ "$result" -eq 0 ]; then
echo "Startup successful for $binary"
else
echo "Startup failed for $binary, $result processes missing."
fi
done

Loading…
Cancel
Save