[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Tell Ubuntu and Debian apart in a shell script ...



Is something on the lines of:


cat /etc/apt/sources.list|grep '^deb '|grep 'http://security\.'|head -n 1|grep -o 'debian|ubuntu'


a safe idea or does it already make too many assumptions?

Otherwise, what methods do you use to tell them apart from the shell?


Thanks,

// Oliver
-- 
---------------------------------------------------
DDKWizard and DDKBUILD: <http://ddkwizard.assarbad.net>

Trunk (potentially unstable) version: <http://ddkwizard.assarbad.net/trunk/ddkbuild.cmd>


Reply to: