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