 }
 
 
-func processSettings(var settingsPath: String, availableEnvs:[String], allowedEnv: String? = nil) -> Bool {
+func processSettings(settingsPath: String, availableEnvs:[String], allowedEnv: String? = nil) -> Bool {
+    var settingsPath = settingsPath
     let preferenceKey = "PreferenceSpecifiers"
     settingsPath = (settingsPath as NSString).stringByAppendingPathComponent("Root.plist") as String
     


let count = Process.arguments.count
if count == 1 || count > 5 {
    print("\(__FILE__):\(__LINE__): Received \(count) arguments, Proper usage: processEnvironments.swift -- [bundledPath] [srcPath] [settingsPath] [allowedEnv]")
    exit(1)
}


        
        let settingsAdjusted = processSettings(settingsPath, availableEnvs: availableEnvs, allowedEnv: allowedEnv)
        if settingsAdjusted == false {
            print("\(#file):\(#line): Unable to adjust settings bundle")
        }
        return settingsAdjusted
    }
