diff --git a/setupDeck.sh b/setupDeck.sh deleted file mode 100644 index c175028eddc73bcd78ac2802a36859f407d7a973..0000000000000000000000000000000000000000 --- a/setupDeck.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -helpFunction() -{ - echo "" - echo "Usage: $0 -y datePresentation -n namePresentation" - echo -e "\t-a Date of the presentation (Format: YYYY-MM-DD)" - echo -e "\t-b Name of the presentation" - exit 1 # Exit script after printing help -} - -while getopts "y:n:" opt -do - case "$opt" in - y ) datePres="$OPTARG" ;; - n ) namePres="$OPTARG" ;; - ? ) helpFunction ;; # Print helpFunction in case parameter is non-existent - esac -done - -# Print helpFunction in case parameters are empty -if [ -z "$datePres" ] || [ -z "$namePres" ] -then - echo "Some or all of the parameters are empty"; - helpFunction -fi - -yearPres=${datePres:0:4} - -echo "Setting up a new slide deck" -echo "----------------------------" -echo " + Year: $yearPres" -echo " + Date: $datePres" -echo " + Name: $namePres" - -# checkout a new branch -#git checkout develop -#git pull origin develop -#git checkout -b newBranch - -# copy the template -cp -r ./template "./$yearPres/$namePres" - -# print out a success message -echo " > The slide deck has been created in ./$yearPres/$namePres" -echo "----------------------------"