diff options
author | mhsn <mail@mhsn.net> | 2025-09-24 16:35:08 +0100 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2025-09-24 16:37:45 +0100 |
commit | 6f23d7806bbfcff9c22317825d763275f86c4815 (patch) | |
tree | d0d702c8772b27bdfea344a615cff535f0c6fa73 /init | |
parent | ff88fb5d1b7f3dc52858f89c27f3646b493d4828 (diff) | |
download | aoc-6f23d7806bbfcff9c22317825d763275f86c4815.tar.gz aoc-6f23d7806bbfcff9c22317825d763275f86c4815.zip |
shfmt
Diffstat (limited to 'init')
-rwxr-xr-x | init | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -16,23 +16,23 @@ touch $aoc_path/puzzle.txt # data directory if [ ! -d $aoc_path/data ]; then - mkdir --parents $aoc_path/data - for f in "test" "aoc"; do - touch $aoc_path/data/$f.txt - echo "silver: ???\ngold: ???" >$aoc_path/data/$f.ans - done + mkdir --parents $aoc_path/data + for f in "test" "aoc"; do + touch $aoc_path/data/$f.txt + echo "silver: ???\ngold: ???" >$aoc_path/data/$f.ans + done fi case $lang in python) - cp $script_path/template/python.py $aoc_path - ;; + cp $script_path/template/python.py $aoc_path + ;; rust) - cargo new --vcs none --name aoc_$year-$day $aoc_path/rust - cp $script_path/template/main.rs $aoc_path/rust/src/main.rs - ;; + cargo new --vcs none --name aoc_$year-$day $aoc_path/rust + cp $script_path/template/main.rs $aoc_path/rust/src/main.rs + ;; *) - echo unknown lang: $lang - exit 1 - ;; + echo unknown lang: $lang + exit 1 + ;; esac |