mirror of
https://github.com/Crocmagnon/advent-of-code.git
synced 2024-12-22 05:41:51 +01:00
Check for linux before sed
This commit is contained in:
parent
ae62ed7615
commit
58deec6a0c
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@ fi
|
|||
|
||||
filename=day$1_$2.py
|
||||
cp template.py $filename
|
||||
sed -e "s/dayXX/day$1/g" -i "" ./$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
|
||||
|
|
Loading…
Reference in a new issue