Преглед изворни кода

Made issues.go check if arg is a file

arianagiroux пре 2 недеља
родитељ
комит
54dd8c3af2
1 измењених фајлова са 3 додато и 0 уклоњено
  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)
 		}
 	}