assistant --autostop: Avoid crashing when ~/.config/git-annex/autostart
lists a directory that it cannot chdir to.
Sponsored-by: k0ld on Patreon
are passed.
* configremote: New command, currently limited to changing autoenable=
setting of a special remote.
+ * assistant --autostop: Avoid crashing when ~/.config/git-annex/autostart
+ lists a directory that it cannot chdir to.
-- Joey Hess <id@joeyh.name> Sat, 08 Apr 2023 13:57:18 -0400
program <- programPath
forM_ dirs $ \d -> do
putStrLn $ "git-annex autostop in " ++ d
- setCurrentDirectory d
- ifM (boolSystem program [Param "assistant", Param "--stop"])
- ( putStrLn "ok"
- , putStrLn "failed"
- )
+ tryIO (setCurrentDirectory d) >>= \case
+ Right () -> ifM (boolSystem program [Param "assistant", Param "--stop"])
+ ( putStrLn "ok"
+ , putStrLn "failed"
+ )
+ Left e -> do
+ putStrLn (show e)
+ putStrLn "failed"
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
I love it! 🤩
+
+> [[fixed|done]] --[[Joey]]