Function to check for command existence
This commit is contained in:
parent
f09368268d
commit
71c881ee96
@ -30,6 +30,10 @@ kickstart.add_to_profile.d() {
|
|||||||
grep -q $file /etc/zshenv 2>/dev/null || ( echo "[[ -f /etc/profile.d/$file ]] && source /etc/profile.d/$file" >> /etc/zshenv )
|
grep -q $file /etc/zshenv 2>/dev/null || ( echo "[[ -f /etc/profile.d/$file ]] && source /etc/profile.d/$file" >> /etc/zshenv )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kickstart.command_exists() {
|
||||||
|
which $1 >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
for recipe in recipes/kickstart/*; do
|
for recipe in recipes/kickstart/*; do
|
||||||
source $recipe
|
source $recipe
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user