mirror of
https://github.com/taigrr/go-selfupdate
synced 2025-01-18 04:33:12 -08:00
refactor
This commit is contained in:
parent
15d118d3bd
commit
210eb0dbd0
7
main.go
7
main.go
@ -138,6 +138,10 @@ func isArgsPresent() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func createBuildDir() {
|
||||
os.MkdirAll(genDir, 0755)
|
||||
}
|
||||
|
||||
func main() {
|
||||
if isArgsPresent() == false {
|
||||
printUsage()
|
||||
@ -148,7 +152,8 @@ func main() {
|
||||
appPath = os.Args[1]
|
||||
version = os.Args[2]
|
||||
genDir = "public"
|
||||
os.MkdirAll(genDir, 0755)
|
||||
|
||||
createBuildDir()
|
||||
|
||||
// If dir is given create update for each file
|
||||
files, err := ioutil.ReadDir(appPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user