diff options
author | haturatu <taro@eyes4you.org> | 2024-11-28 19:52:28 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-11-28 19:52:28 +0900 |
commit | d5791b2c8d6bd472e30e9c4b1619acfc528d8eb5 (patch) | |
tree | a091aedf3cde26489eb9a719e45e3742536e007f /lumebuild.sh | |
parent | 4d77a75f1c31944ebc6e7693deddfde3f5919675 (diff) |
cmd check
Diffstat (limited to 'lumebuild.sh')
-rwxr-xr-x[-rw-r--r--] | lumebuild.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lumebuild.sh b/lumebuild.sh index 4896658..3f17ff0 100644..100755 --- a/lumebuild.sh +++ b/lumebuild.sh @@ -15,6 +15,15 @@ COMMIT_COMMENT="`echo "Memory" && free -h | head -2 | awk '{print $(NF-5)"," $( export DENO_INSTALL="/home/$USER/.deno" export PATH="$DENO_INSTALL/bin:$PATH" +commands=("deno" "git" "toot" "cwebp") + +for cmd in "${commands[@]}"; do + if ! command -v "$cmd" >/dev/null 2>&1; then + echo "Please install: $cmd" + exit 1 + fi +done + git_commit() { cd "$SRC_DIR" || exit ls "$SRC_DIR/.git" || git init || exit |