vendredi 21 juillet 2017

How to use if else condition properly to rectify the error

#!/bin/bash
$activity1 = zenity  --list  --text " select the option" --radiolist  --column "Select" --column "you are" FALSE "admin" TRUE "customer" ;


if [ $activity1  = "admin"]; then

 ( zenity --password --username );

else [ $activity1 = "customer" ]; then


( zenity --entry );\

--entry-text ""
fi

I got an error "Syntax error: "then" unexpected (expecting "fi")" Can any one suggest me the answer?

Aucun commentaire:

Enregistrer un commentaire