We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fc969 commit 3486a41Copy full SHA for 3486a41
1 file changed
alteriso/src/internal/cmd/clean.go
@@ -49,6 +49,11 @@ func cleanCmd() *cobra.Command {
49
Short: "Clean up working directories",
50
RunE: func(cmd *cobra.Command, args []string) error {
51
52
+ if !futils.Exists(workDir) {
53
+ slog.Info("Workdir does not exist, nothing to clean", "dir", workDir)
54
+ return nil
55
+ }
56
+
57
correctedWorkDir, ok := correctWorkDir(workDir)
58
if !ok {
59
return errors.Newf("workdir %s is not a valid directory", workDir)
0 commit comments