on 308e872 help sign in
stackage/commenter
20 lines 478 B history raw
1#!/usr/bin/env bash
3if ! command -v cargo
4then
5 echo "Rust doesn't seem to be installed. https://rustup.rs/"
6 exit 1
7fi
9if [ "$1" = "outdated" ];
10then
11 if ! command -v latest-version &> /dev/null
12 then
13 echo "This command requires latest-version in your PATH"
14 echo "Install it with: "
15 echo "stack install --stack-yaml etc/commenter/latest-version/stack.yaml"
16 exit 1
17 fi
18fi
20cargo run -q --release --manifest-path etc/commenter/Cargo.toml $@