2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #2570 from neo954/issue2560-syncfiles

Fix the exit code of postscript `syncfiles`
This commit is contained in:
yangsong 2017-03-01 15:47:34 +08:00 committed by GitHub
commit 25b21f28b0

View File

@ -38,6 +38,7 @@ xcatpostdir="/xcatpost"
logger -t xcat -p local4.info "$0: the OS name = $osname"
quit="no"
count=5
returncode=0
while [ $quit = "no" ]; do
if [ $osname = "Linux" ]
then
@ -66,5 +67,4 @@ else
logger -t xcat -p local4.err "$0: Perform Syncing File action encountered error"
fi
exit 0
[ $returncode -eq 0 ]