advent_of_code_2024/add
Clement Desmidt e98ff431dc 🎉 Init repo
2024-12-02 09:46:43 +01:00

20 lines
340 B
Bash
Executable File

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