AdventOfCode2022/run.sh

13 lines
227 B
Bash
Executable File

#!/bin/bash
if [ "${1}" != "" ]; then
padded=$(printf "%02g" ${1})
cd ${padded}
if [ "${2}" == "go" ]; then
go run main.go
else
rustc main.rs && ./main && rm main
fi
cd - > /dev/null
fi