 	}
 	
 	
-	let versionScript = "git ls-remote git://github.com/SOBotics/FireAlarm swift | cut -d '\t' -f1 > available_version.txt"
+	let versionScript = "git ls-remote git://github.com/SOBotics/FireAlarm \(branch) | cut -d '\t' -f1 > available_version.txt"
 
 	
 	do {

}

var isUpdating = false

func installUpdate() -> Bool {
	do {


func downloadUpdate(isAuto: Bool = false) throws {
	let script = "rm -rf update;" +
		"(git clone -b \(branch) \"git://github.com/SOBotics/FireAlarm.git\" update && " +
		"cd update && " +
	"git log --format='oneline' -n 1 > ../version-downloaded.txt) || exit 1 "
	
