]> err.no Git - dotfiles/commitdiff
Output sorted paths
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Thu, 10 May 2012 07:55:45 +0000 (07:55 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Thu, 10 May 2012 07:55:45 +0000 (07:55 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1515 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

zshfunc/reinit-samhain-one

index 2ba39b130b43a6230e57ff7411856b8832419b6f..c85f9a6e2c5c8552ea0edf415e331b3e05bb2d59 100644 (file)
@@ -18,7 +18,7 @@ ssh $host -t '
                check > "$t" 2>&1;
                if [ "`grep "^CRIT" "$t" | wc -l`" != 0 ]; then
                        echo "samhain db errors found:";
-                       sed -e "s/.*path=<\([^>]*\)>, .*/\1/" "$t";
+                       sed -e "s/.*path=<\([^>]*\)>, .*/\1/" "$t" | sort;
                        echo;
                        echo "Enter 'y' to continue upgrade and update samhaindb for `hostname`";
                        read ans;