1
0
mirror of https://github.com/taigrr/go-selfupdate synced 2025-01-18 04:33:12 -08:00
This commit is contained in:
Mark Sanborn 2014-08-08 17:38:30 -07:00
parent 15d118d3bd
commit 210eb0dbd0

View File

@ -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)