Matching opening and closing if statements in shell script (ifâ¦fi) using PHPStorm, vscode
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I hava bunch of these nested if..then...fi 's if [ "$var" = "NA" ] then if [ "$var" != "SAM" -a "$fileFormat" != "XED" -a "$Format" != "TED" -a "$Format" != "ESTA" ] then echo "ERROR: Input file format not recognised" echo "use --help for more information" exit 1 fi #convert esta to ted - start if [ $fileFormat = "ESTA" ] then if [ $ENO != "NA" ] then ENO=$(greadlink -e $ENO ) fi if [ -z "$output" ] then echo "WARNING" echo "No output directory specified. Using current working directory, " $(pwd)/OUTPUT output=$(pwd)/OUTPUT fi InputTed=$(greadlink -e $Inputted) #greadlink - to canonicanize/normalize to standard format mkdir -p $output cd $output output=$(greadlink -e $(pwd) ) DIRECTORY=$(pwd) In a more than 2000 line sh...