We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b552f1d commit 900d6e8Copy full SHA for 900d6e8
1 file changed
main.go
@@ -8,9 +8,16 @@ import (
8
9
func main() {
10
var nogit bool = false
11
- if os.Args[1] == "nogit" {
12
- nogit = true
13
- fmt.Println("Ok, won't backup to git. Will still move exported files to GitRepoFolder.")
+
+ // Check if any args have been set
+ if len(os.Args) > 1 {
14
+ if os.Args[1] == "nogit" {
15
+ nogit = true
16
+ fmt.Println("Ok, won't backup to git. Will still move exported files to GitRepoFolder.")
17
+ } else {
18
+ fmt.Println("The only supported arg is 'nogit'")
19
+ os.Exit(1)
20
+ }
21
}
22
23
// Get settings from settings.json
0 commit comments