scripts/bemoji

17 lines
376 B
Bash
Executable File

#!/bin/sh
# Tiny wrapper to ensure to have 'bemoji' binary independently of the OS/path
if [ $(command -v bemoji) ]; then
bemoji "${*}"
elif [ $(command -v bemoji.sh) ]; then
bemoji.sh "${*}"
elif [ -f "${HOME}/repos/bemoji/bemoji" ]; then
${HOME}/repos/bemoji/bemoji "${*}"
else
printf '%s' "No bemoji binary available"
exit 1
fi
exit 0