Fix for defect 3394779: Fix bashisms in syncfiles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4dd1436e17
commit
b4892e3e69
@ -8,14 +8,14 @@
|
||||
#####################################################
|
||||
|
||||
# do nothing when UPDATENODE=1 because it is done from the top down
|
||||
if [[ $UPDATENODE -eq 1 ]]; then
|
||||
if [ -n "$UPDATENODE" ] && [ $UPDATENODE -eq 1 ]; then
|
||||
echo " Did not sync any files. Use updatenode -F to sync the files."
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#do nothing id there is no sync file template for the node
|
||||
if [[ $NOSYNCFILES -eq 1 ]]; then
|
||||
if [ -n "$NOSYNCFILES" ] && [ $NOSYNCFILES -eq 1 ]; then
|
||||
echo " Did not sync any files."
|
||||
logger -t xCAT "$0: there is no sync file template for the node"
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user