Check for linux before sed

This commit is contained in:
Gabriel Augendre 2022-12-04 19:09:11 +01:00
parent ae62ed7615
commit 58deec6a0c

View file

@ -8,7 +8,11 @@ fi
filename=day$1_$2.py
cp template.py $filename
if [ "$(uname -s)" == "Linux" ]; then
sed -e "s/dayXX/day$1/g" -i ./$filename
else
sed -e "s/dayXX/day$1/g" -i "" ./$filename
fi
mkdir -p inputs
touch inputs/day$1
touch inputs/day$1-test1