Improve Haskell code in gpg-key

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-04-19 20:06:38 +02:00
parent ce73f39891
commit fd634e1d5e
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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"
'';
};