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 1 hour ago
1 day 4 hours ago
1 day 15 hours ago
1 day 18 hours ago
1 day 22 hours ago
2 days 5 hours ago
2 days 14 hours ago
2 days 16 hours ago
3 days 26 min ago
3 days 1 hour ago