mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-25 05:41:09 +00:00
check the postscripts before running it with 'bash -x' upgrade
This commit is contained in:
@@ -164,6 +164,9 @@ run_ps () {
|
||||
if [[ \"\$compt\" =~ \$reg ]]; then
|
||||
bash -x ./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
fi
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
|
@@ -149,6 +149,9 @@ run_ps () {
|
||||
if [[ \"\$compt\" =~ \$reg ]]; then
|
||||
bash -x ./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
fi
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
|
@@ -834,6 +834,9 @@ run_ps () {
|
||||
if [[ \"\$compt\" =~ \$reg ]]; then
|
||||
bash -x ./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
ret_local=\${PIPESTATUS[0]}
|
||||
fi
|
||||
else
|
||||
./\$@ 2>&1 | tee -a \$logfile
|
||||
|
Reference in New Issue
Block a user