mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
rm / from path of xcatpost folder when run rm command (#3238)
This commit is contained in:
@ -126,9 +126,8 @@ download_postscripts()
|
||||
retry=0
|
||||
rc=1 # this is a fail return
|
||||
while [ 0 -eq 0 ]; do
|
||||
|
||||
if [ -e "\/$xcatpost" ]; then
|
||||
rm -rf "\/$xcatpost"
|
||||
if [ -e "$xcatpost" ]; then
|
||||
rm -rf "$xcatpost"
|
||||
fi
|
||||
|
||||
export LANG=C; wget -l inf -nH -N -r --waitretry=10 --random-wait -e robots=off -T 60 -nH --cut-dirs=2 --reject "index.html*" --no-parent http://$server$INSTALLDIR/postscripts/ -P /$xcatpost 2> /tmp/wget.log
|
||||
|
Reference in New Issue
Block a user