removestr="${removestr}${destdir}/${label}";
debug "$removestr"
-if [ ! $test ]; then
+if [ $test = 0 ]; then
output=`$removestr 2>&1`
if [ $? = 0 ]; then
debug $output
if [ -n "$str" ]; then
execstr="${execstr}--exclude '$str' "
else
- warning "exclude statement ${i//__star__/*} will be ignored. $symlinks_warning"
+ warning "exclude statement '${i//__star__/*}' will be ignored. $symlinks_warning"
fi
done
# includes
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
- warning "include statement ${i//__star__/*} will be ignored. $symlinks_warning"
+ warning "include statement '${i//__star__/*}' will be ignored. $symlinks_warning"
fi
done
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
- warning "vsinclude statement ${vi//__star__/*} will be ignored for VServer $vserver. $symlinks_warning"
+ warning "vsinclude statement '${vi//__star__/*}' will be ignored for VServer $vserver. $symlinks_warning"
fi
done
done
execstr="${execstr}$execstr_sourcepart $execstr_destpart"
debug "$execstr"
-if [ ! $test ]; then
+if [ $test = 0 ]; then
output=`nice -n $nicelevel su -c "$execstr" 2>&1`
if [ $? = 0 ]; then
debug $output