Turn bemoji link to a tiny wrapper

This commit is contained in:
gardouille 2024-03-26 14:51:04 +01:00
parent cd507205e7
commit 3d5323c9bc
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

1
bemoji
View File

@ -1 +0,0 @@
../bemoji/bemoji

16
bemoji Executable file
View File

@ -0,0 +1,16 @@
#!/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