Explorar el Código

Removed test variables

Jguer hace 8 años
padre
commit
fb05b8e973
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      cmd/yay/yay.go

+ 1 - 3
cmd/yay/yay.go

@@ -62,9 +62,7 @@ func parser() (op string, options []string, packages []string, err error) {
 			case "--topdown":
 				util.SortMode = util.TopDown
 			case "--complete":
-				util.Shell = os.Args[i+1]
-				fmt.Println(util.Shell)
-				os.Exit(0)
+				util.Shell = os.Args[i+2]
 				yay.Complete()
 				os.Exit(0)
 			case "--help":