X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/423726fc992211893ed74e63a3ccd907b7163280..ea169ef8ff405ebbfbfcdd105e3a3b755e81396f:/lib/AddProgram.hs diff --git a/lib/AddProgram.hs b/lib/AddProgram.hs index 5a145ad..dbfb0be 100644 --- a/lib/AddProgram.hs +++ b/lib/AddProgram.hs @@ -78,7 +78,7 @@ getProgram = do >> getProp (yellow "Program name: ") "" files <- printf "%s\n" (T.unpack (faint (italic (cyan "Alright, now let's configure which files belong to this program.")))) >> printf "%s\n" (T.unpack (faint (italic (cyan "I'm going to ask you for the path to the file, please use $HOME instead of ~.")))) - >> printf "%s\n" (T.unpack (faint (italic (cyan "I'll then ask you wether or not this file can be moved to a different directory.")))) + >> printf "%s\n" (T.unpack (faint (italic (cyan "I'll then ask you whether or not this file can be moved to a different directory.")))) >> printf "%s\n" (T.unpack (faint (italic (cyan "Finally, your editor is going to open a markdown document. Enter instructions on moving the file in question, then save and close.")))) >> getFiles [] return Program {name = T.pack name, files = files} @@ -88,5 +88,5 @@ saveProgram = do program <- getProgram do_save <- promptBool (green "Save? (y/n) ") (red "Please provide a valid answer.") "" if do_save - then save program + then save (makeFilename (name program)) program else return ()