Initialise le repo comme en 2019

This commit is contained in:
Clément 2020-12-03 12:27:04 +01:00
commit 5b3705d3e2
2 changed files with 20 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
input.txt
/.idea

18
add.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/zsh
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
NUMBER=$1
if [ ! -d "${SCRIPTPATH}/day_${NUMBER}" ]; then
mkdir "${SCRIPTPATH}/day_${NUMBER}"
else
echo "folder ${SCRIPTPATH}/day_${NUMBER} already exists"
exit
fi
cd "${SCRIPTPATH}/day_${NUMBER}" || exit
touch input.txt part_1.php part_2.php
echo "DONE"
exit