mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Merge pull request #276 from penguhyang/type_postscript_update
check the postscripts before running it with 'bash -x' upgrade
This commit is contained in:
commit
1bb0e692bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user