mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-16 17:45:39 -06:00
fix opencloud decomposedfs flags
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
Florian Schade
parent
94a49aa404
commit
35b3e51052
@@ -69,9 +69,10 @@ func checkCmd(cfg *config.Config) *cobra.Command {
|
||||
|
||||
func check(cmd *cobra.Command, args []string) error {
|
||||
rootFlag := cmd.Flag("root").Value.String()
|
||||
repairFlag := cmd.Flag("repair").Changed
|
||||
repairFlag, _ := cmd.Flags().GetBool("repair")
|
||||
forceFlag, _ := cmd.Flags().GetBool("force")
|
||||
|
||||
if repairFlag && !cmd.Flag("force").Changed {
|
||||
if repairFlag && !forceFlag {
|
||||
answer := strings.ToLower(stringPrompt("IMPORTANT: Only use '--repair' when OpenCloud is not running. Do you want to continue? [yes | no = default]"))
|
||||
if answer != "yes" && answer != "y" {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user