|
@@ -12,19 +12,16 @@ import time
|
|
|
#Create timer to get execution time
|
|
|
start = time.time()
|
|
|
|
|
|
-#Ask user if they have the Linux command line tool figlet installed
|
|
|
+#If not already installed, install figlet
|
|
|
figlet_install = input("Do you have figlet installed on your linux terminal (Y/N)? ")
|
|
|
|
|
|
-#If they already have it installed, don't do anything and move on to the next part in the code
|
|
|
if figlet_install.upper() == "Y":
|
|
|
pass
|
|
|
|
|
|
-#If user does not have figlet installed, in the background the program runs the Linux command for installing figlet
|
|
|
elif figlet_install.upper() == "N":
|
|
|
print("Installing figlet...")
|
|
|
os.system("sudo apt-get install figlet")
|
|
|
-
|
|
|
-#If user doesn't enter y or n, throw an error exiting the program
|
|
|
+
|
|
|
elif figlet_install.upper() != "Y" and "N":
|
|
|
sys.exit("Invalid input. Your input must either be Y or N (uppercase is not mandatory).")
|
|
|
|