AdventOfCode2023/run.sh

9 lines
132 B
Bash
Executable File

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