AdventOfCode2022/run.sh

9 lines
152 B
Bash
Raw Normal View History

2022-12-01 12:33:12 +00:00
#!/bin/bash
if [ "${1}" != "" ]; then
padded=$(printf "%02g" ${1})
cd ${padded}
rustc main.rs && ./main && rm main
cd - > /dev/null
fi