Forráskód Böngészése

Made issues.go check if arg is a file

arianagiroux 2 hete
szülő
commit
54dd8c3af2
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      cmd/issues.go

+ 3 - 0
cmd/issues.go

@@ -32,6 +32,9 @@ func main() {
 				fmt.Printf("%s is a directory...\n", arg[0])
 				os.Exit(1)
 			}
+		} else {
+			fmt.Printf("%s is an existing file...\n", arg[0])
+			os.Exit(1)
 		}
 	}