From 9fd9e211d0e4a1112565602e65eded4192edf8d0 Mon Sep 17 00:00:00 2001 From: xuweibj Date: Thu, 8 Jun 2017 11:15:07 +0800 Subject: [PATCH] rm / from path of xcatpost folder when run rm command (#3238) --- xCAT/postscripts/xcatdsklspost | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/xcatdsklspost b/xCAT/postscripts/xcatdsklspost index 3e2c4ffb1..7aac7ab28 100755 --- a/xCAT/postscripts/xcatdsklspost +++ b/xCAT/postscripts/xcatdsklspost @@ -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