diff --git a/src/im_mad/remotes/run_probes b/src/im_mad/remotes/run_probes index e1d3510c7d..50b544bd8c 100755 --- a/src/im_mad/remotes/run_probes +++ b/src/im_mad/remotes/run_probes @@ -31,7 +31,7 @@ cd $SCRIPTS_DIR function run_dir { ( cd $1 - for i in `ls * | grep -E -v '(\.rpmnew$|\.rpmsave$|\.dpkg-\w+$)'`;do + for i in `ls * | grep -E -v '\.(rpmnew|rpmsave|dpkg-\w+)$'`;do if [ -x "$i" ]; then ./$i $ARGUMENTS EXIT_CODE=$?