mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
Improve Haskell code in gpg-key
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
ce73f39891
commit
fd634e1d5e
|
@ -41,11 +41,8 @@ final: prev:
|
|||
|
||||
rm "-r" "/mnt/key"
|
||||
mntContains <- captureTrim <| find "/mnt" "-maxdepth" "0" "-empty"
|
||||
if show mntContains == "" then do
|
||||
putStrLn "delete /mnt" -- rm "-r" "/mnt"
|
||||
else do
|
||||
return ()
|
||||
otherwise -> do
|
||||
when (show mntContains == "") (putStrLn "delete /mnt" -- rm "-r" "/mnt")
|
||||
_ -> do
|
||||
putStrLn "open - open key\nclose - close key"
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue