mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 10:40:24 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user