This commit is contained in:
2022-11-27 19:36:00 +08:00
parent 464e1a2ebd
commit d89e3ceee1
8 changed files with 84 additions and 18 deletions

View File

@@ -3,7 +3,7 @@
cat <<-EOF
#!/bin/bash
#=========================================
# Company : Where the f**k r u!
# Company : Boyachain
# Create : $(date +"%F %R")
# Author : Who the f**k r u!
#=========================================
@@ -11,7 +11,6 @@ cat <<-EOF
set -euo pipefail
umask 0022
export LANG=en_US.UTF-8
trap Quit EXIT
PID_FILE=/tmp/\$(basename \${0%.sh}).pid
@@ -49,6 +48,7 @@ function Main {
&& echo \\
&& Error Pid file \$PID_FILE already exists, quit!
echo \$\$ > \$PID_FILE
trap Quit EXIT
Warn Main ...
Func1
Func2