8 lines · 81 B · executable
#!/usr/bin/env bash

if command -v $1 &> /dev/null
then
    printf 1
    exit
fi