From 13900cc1cc52ba547e910225f695596d514a9506 Mon Sep 17 00:00:00 2001 From: Lightwave Feesh Date: Wed, 27 Dec 2017 23:55:57 -0600 Subject: [PATCH] Fix: Support the Bash shell, alongside others. --- movies-for-hackers.sh | 47 ++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/movies-for-hackers.sh b/movies-for-hackers.sh index fa7da56..dd2c5fc 100755 --- a/movies-for-hackers.sh +++ b/movies-for-hackers.sh @@ -2,35 +2,44 @@ version=0.1 +case $SHELL in + *bash) + ECHO='echo -e' + ;; + *) + ECHO='echo' + ;; +esac + # Colors purple="\033[0;35m" red="\033[1;31m" green="\033[1;32m" blue="\033[1;34m" -clear; echo "" -sleep 0.01 && echo "$purple " -sleep 0.2 && echo " ███╗ ███╗ ██████╗ ██╗ ██╗██╗███████╗███████╗ " -sleep 0.2 && echo " ████╗ ████║██╔═══██╗██║ ██║██║██╔════╝██╔════╝ " -sleep 0.2 && echo " ██╔████╔██║██║ ██║██║ ██║██║█████╗ ███████╗ " -sleep 0.2 && echo " ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██║██╔══╝ ╚════██║ " -sleep 0.2 && echo " ██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ██║███████╗███████║ " -sleep 0.2 && echo " ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚══════╝╚══════╝ " +clear; ${ECHO} "" +sleep 0.01 && ${ECHO} "$purple " +sleep 0.2 && ${ECHO} " ███╗ ███╗ ██████╗ ██╗ ██╗██╗███████╗███████╗ " +sleep 0.2 && ${ECHO} " ████╗ ████║██╔═══██╗██║ ██║██║██╔════╝██╔════╝ " +sleep 0.2 && ${ECHO} " ██╔████╔██║██║ ██║██║ ██║██║█████╗ ███████╗ " +sleep 0.2 && ${ECHO} " ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██║██╔══╝ ╚════██║ " +sleep 0.2 && ${ECHO} " ██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ██║███████╗███████║ " +sleep 0.2 && ${ECHO} " ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚══════╝╚══════╝ " -echo "" -sleep 0.2 && echo " ███████╗ ██████╗ ██████╗ ██╗ ██╗ █████╗ ██████╗██╗ ██╗███████╗██████╗ ███████╗ " -sleep 0.2 && echo " ██╔════╝██╔═══██╗██╔══██╗ ██║ ██║██╔══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗██╔════╝ " -sleep 0.2 && echo " █████╗ ██║ ██║██████╔╝ ███████║███████║██║ █████╔╝ █████╗ ██████╔╝███████╗ " -sleep 0.2 && echo " ██╔══╝ ██║ ██║██╔══██╗ ██╔══██║██╔══██║██║ ██╔═██╗ ██╔══╝ ██╔══██╗╚════██║ " -sleep 0.2 && echo " ██║ ╚██████╔╝██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██╗███████╗██║ ██║███████║ " -sleep 0.2 && echo " ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝ " +${ECHO} "" +sleep 0.2 && ${ECHO} " ███████╗ ██████╗ ██████╗ ██╗ ██╗ █████╗ ██████╗██╗ ██╗███████╗██████╗ ███████╗ " +sleep 0.2 && ${ECHO} " ██╔════╝██╔═══██╗██╔══██╗ ██║ ██║██╔══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗██╔════╝ " +sleep 0.2 && ${ECHO} " █████╗ ██║ ██║██████╔╝ ███████║███████║██║ █████╔╝ █████╗ ██████╔╝███████╗ " +sleep 0.2 && ${ECHO} " ██╔══╝ ██║ ██║██╔══██╗ ██╔══██║██╔══██║██║ ██╔═██╗ ██╔══╝ ██╔══██╗╚════██║ " +sleep 0.2 && ${ECHO} " ██║ ╚██████╔╝██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██╗███████╗██║ ██║███████║ " +sleep 0.2 && ${ECHO} " ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚══════╝ " -echo "" +${ECHO} "" sleep 0.1 -echo $green" A list of movies every hacker & cyberpunk must watch ("$red"Movies For Hackers"$green")" +${ECHO} $green" A list of movies every hacker & cyberpunk must watch ("$red"Movies For Hackers"$green")" sleep 0.1 -echo $blue " Made with <3 by:"$green" Nikolaos Kamarinakis ("$red"k4m4"$green")" +${ECHO} $blue " Made with <3 by:"$green" Nikolaos Kamarinakis ("$red"k4m4"$green")" sleep 0.1 -echo "" +${ECHO} ""