a simple tutorial for bash scripting users would be very nice and usefull . why do i need this ? i would like to create an installer and i would like to check some things ... something like (will do it in php , sorry

) :
$user = $USERNAME;
if($user != 'root')
{
echo 'you need administrative rights to install this!';
exit;
}
else
{
$get1 = wget
http://some_link/;
if(!$get1)
{
echo 'could not download package $get1';
echo 'continue ?'
read answer;
if($answer == y)
{
wget the rest bla bla bla
}
else
{
exit;
}
please , this would be very usefull for me and for others ! thank you
Recent comments
1 day 21 hours ago
2 days 6 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 16 hours ago
3 days 8 hours ago
3 days 9 hours ago