On Mon, Aug 26, 2013 at 06:20:55PM +0200, [email protected] wrote: > pkg=pkg_name; rpm --quiet -q $pkg ; [ $? -eq 0 ] && echo $pkg is present || > echo $pkg is not present
[ $? -eq 0 ] is a shell antipattern, even simpler: pkg=pkg_name; rpm --quiet -q $pkg && echo $pkg is present || echo $pkg is not present -- -- Justin Azoff -- Network Security & Performance Analyst _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
