/
githubmirror
/
Marlin
Обзор
Документация
Войти
/
githubmirror
/
Marlin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
bugfix-2.1.x
buildroot/bin/mfutil
19 строк
695 B
Scott Lahteine
🧑💻 More compatible opt helpers
24 сен 2024, 03:50
24 сен 2024, 03:50
74ffa0c
Код
Авторство
О чём код?
#!/usr/bin/env bash # # mfutil - check env and define helpers # # Check dependencies which curl &>/dev/null || { echo "curl not found! Please install it."; exit 1 ; } which git &>/dev/null || { echo "git not found! Please install it."; exit 1 ; } which sed &>/dev/null || { echo "sed not found! Please install it."; exit 1 ; } OPEN=$( which gnome-open xdg-open open | head -n1 ) SELF=`basename "$0"` # Check if called in the right location [[ -e "Marlin/src" ]] || { echo -e "This script must be called from a Marlin working copy with:\n ./buildroot/bin/$SELF $1" ; exit ; } perror() { echo -e "$0: \033[0;31m$1 -- $2\033[0m" ; } bugout() { ((DEBUG)) && echo -e "\033[0;32m$1\033[0m" ; }