diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index c45524f7f..bdfa52292 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -327,6 +327,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do if [ $mounted -eq 0 ]; then cd /xcatpost dir_no_ftproot=${OTHERPKGDIR#$INSTALLDIR/} + dir_no_ftproot=${dir_no_ftproot/\/*/} rm -f -R $dir_no_ftproot fi fi