diff options
author | mhsn <mail@mhsn.net> | 2025-03-19 22:58:17 +0000 |
---|---|---|
committer | mhsn <mail@mhsn.net> | 2025-03-19 22:58:17 +0000 |
commit | b4706ddd0a8f441db947bd689a98d03e7dcb2919 (patch) | |
tree | d611b2ba2335de9e7e7b638ec33ef241f6c6f51f | |
parent | 02a535f4f6d4dea152107f61f5dc32b4118138c9 (diff) | |
download | aoc-b4706ddd0a8f441db947bd689a98d03e7dcb2919.tar.gz aoc-b4706ddd0a8f441db947bd689a98d03e7dcb2919.zip |
POSIXify bench
-rwxr-xr-x | bench | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/env yash +#!/usr/bin/env sh year=$1 day=$2 @@ -17,9 +17,9 @@ $script_path/check $1 $2 $3 $4 > /dev/null [ ! $? ] && echo "Incorrect solution" && exit 1 -if [[ $lang == "python" ]]; then +if [ $lang = "python" ]; then exec="python $aoc_path/python/main.py" -elif [[ $lang == "rust" ]]; then +elif [ $lang = "rust" ]; then # Compile first cargo build --release --target-dir /tmp/aoc_rust --manifest-path $aoc_path/rust/Cargo.toml exec="/tmp/aoc_rust/release/aoc_$year-$day" |