added check for ~/.config folder
This commit is contained in:
parent
a569996116
commit
c9a1908276
1 changed files with 8 additions and 0 deletions
8
main.go
8
main.go
|
@ -13,6 +13,13 @@ import (
|
|||
|
||||
var isuwuified bool = true
|
||||
|
||||
func checkforconfigfolder(){
|
||||
_, folder := os.Stat(data.GetHome()+"/.config")
|
||||
if os.IsNotExist(folder) {
|
||||
os.Mkdir(data.GetHome()+"/.config", os.ModePerm)
|
||||
}
|
||||
}
|
||||
|
||||
func handleConfig() {
|
||||
_, folder := os.Stat(filepath.Dir(data.GetConfigFile()))
|
||||
_, file := os.Stat(data.GetConfigFile())
|
||||
|
@ -84,6 +91,7 @@ func handlePrint(action, format string, rest string) {
|
|||
}
|
||||
|
||||
func main() {
|
||||
checkforconfigfolder()
|
||||
utils.Initargs()
|
||||
utils.Initcolor()
|
||||
utils.CutePrintInit()
|
||||
|
|
Loading…
Reference in a new issue