summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-04-23 11:06:50 +0100
committermhsn <mail@mhsn.net>2025-04-23 11:06:50 +0100
commit271b499ca5c65f1329838d6f999532c13d32ee3a (patch)
treeaa57a080bb31e97cec41a9368352e0f4cf0b7f96 /init
parent8065c8eb1f00dc9abddd7fd2e1cf1ed3876f4d44 (diff)
downloadaoc-271b499ca5c65f1329838d6f999532c13d32ee3a.tar.gz
aoc-271b499ca5c65f1329838d6f999532c13d32ee3a.zip
run shfmt
Diffstat (limited to 'init')
-rwxr-xr-xinit6
1 files changed, 3 insertions, 3 deletions
diff --git a/init b/init
index f1374ff..b5ed7ac 100755
--- a/init
+++ b/init
@@ -16,7 +16,7 @@ if [ ! -d $aoc_path/data ]; then
for f in "test" "aoc"; do
touch "$aoc_path/puzzle.txt"
touch "$aoc_path/data/$f.txt"
- echo "silver: ???\ngold: ???" > "$aoc_path/data/$f.ans"
+ echo "silver: ???\ngold: ???" >"$aoc_path/data/$f.ans"
done
fi
@@ -24,12 +24,12 @@ fi
if [ ! -d $aoc_path/python ]; then
mkdir --parents $aoc_path/python
cp "$script_path/template/main.py" "$aoc_path/python/main.py"
- echo "*" > "$aoc_path/python/.gitignore"
+ echo "*" >"$aoc_path/python/.gitignore"
fi
# Rust
if [ ! -d $aoc_path/rust ]; then
cargo new "$aoc_path/rust" --vcs none --name "aoc_$year-$day"
cp "$script_path/template/main.rs" "$aoc_path/rust/src/main.rs"
- echo "*" > "$aoc_path/rust/.gitignore"
+ echo "*" >"$aoc_path/rust/.gitignore"
fi