missing fi in edge.sh