Browse Source

fix: use `os.TempDir()` instead of hard coded `/tmp`

kPherox 4 months ago
parent
commit
d4ef34dfd3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      options.go

+ 1 - 1
options.go

@@ -46,7 +46,7 @@ func parseOptions() (options Options) {
 	version := getopt.BoolLong("version", 'v', "show version info")
 	split := getopt.BoolLong("split", 's', "split emoji pack via category")
 	keepOld := getopt.BoolLong("keep-old", 'k', "keep old files")
-	dir := getopt.StringLong("path", 'p', "/tmp", "generate emoji pack directory", "PATH")
+	dir := getopt.StringLong("path", 'p', os.TempDir(), "generate emoji pack directory", "PATH")
 
 	Parse()