chris01010
Programmer
Bit of a no brainer probably for most, but i'm banging my head against me monitor at this precise moment in time.
Basically I want to check that the User, is the correct User to run this script against a number of parameters.
i.e.
{
if
[ "env"= "a" ] && [ "node" = "test" ] && [ "User" = "testman" ]
then
./Deploy
else
clear
echo "User$User does not have permission to deliver to this Environment"
echo "
Returning to Main Menu"
sleep 2
fi
}
unfortunately it doesn't seem to validate against the list of params. I have no doubt it's a syntax error. Anybody have any ideas??
Cheers
Chris
Basically I want to check that the User, is the correct User to run this script against a number of parameters.
i.e.
{
if
[ "env"= "a" ] && [ "node" = "test" ] && [ "User" = "testman" ]
then
./Deploy
else
clear
echo "User$User does not have permission to deliver to this Environment"
echo "
Returning to Main Menu"
sleep 2
fi
}
unfortunately it doesn't seem to validate against the list of params. I have no doubt it's a syntax error. Anybody have any ideas??
Cheers
Chris