mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 18:16:39 +00:00
Remove trailing spaces in file xCAT/postscripts/getmypostscript.cumulus
This commit is contained in:
parent
06b7efd443
commit
4781b96dd9
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#this script send getpostscript request to xcatd on MN and generate /xcatpost/mypostscript
|
||||
#this script send getpostscript request to xcatd on MN and generate /xcatpost/mypostscript
|
||||
#which includes the glocal environment variables to run postscripts
|
||||
|
||||
if [ -z "$XCATDEST" ]; then
|
||||
@ -13,9 +13,9 @@ echo "<xcatrequest>
|
||||
|
||||
|
||||
|
||||
if [ -f /tmp/resp.xml ]; then
|
||||
if [ -f /tmp/resp.xml ]; then
|
||||
#remove any existing response file
|
||||
rm /tmp/resp.xml;
|
||||
rm /tmp/resp.xml;
|
||||
fi
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ if [ -f /tmp/resp.xml ] && grep '<data>' /tmp/resp.xml >/dev/null 2>&1 ;then
|
||||
echo "Success to obtain mypostscript!"
|
||||
else
|
||||
echo "Failed to obtain mypostscript!"
|
||||
exit 1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#parse the script from the xml-formated resposne
|
||||
|
Loading…
x
Reference in New Issue
Block a user