Browse Source

fix override again

Help-14 3 years ago
parent
commit
41b3f12f50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/file.go

+ 1 - 1
src/modules/file.go

@@ -65,7 +65,7 @@ func CopyDir(source string, dest string, override bool) (err error) {
 			}
 		} else {
 			// perform copy
-			if Exists(destinationfilepointer) && override {
+			if !Exists(destinationfilepointer) || (Exists(destinationfilepointer) && override) {
 				err = CopyFile(sourcefilepointer, destinationfilepointer)
 				if err != nil {
 					fmt.Println(err)