Script Refactoring

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

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

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

Loading…
Cancel
Save