mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
16 lines
299 B
Bash
Executable file
16 lines
299 B
Bash
Executable file
#!/bin/bash
|
|
function .not_present() {
|
|
if which "$1" &> /dev/null; then
|
|
return 1
|
|
fi
|
|
return 0;
|
|
}
|
|
|
|
if .not_present yaml; then
|
|
wget https://github.com/mikefarah/yaml/releases/download/1.11/yaml_linux_amd64 -O ~/bin/yaml
|
|
chmod +x ~/bin/yaml
|
|
fi
|
|
|
|
if .not_present jq; then
|
|
apt install jq
|
|
fi
|