check column dependency

This commit is contained in:
Denis Lehmann 2024-09-19 10:18:17 +02:00
parent 3d1adc0c12
commit 6690c470e3
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,11 @@
#!/usr/bin/env bash
# Check 'column' dependency
if ! command -v column &> /dev/null; then
echo "Command 'column' not available on the system, please make sure all dependencies are fulfilled."
exit 1
fi
# Adds $1 to ~/.bashrc if not already present
function _add_to_config {
if ! grep "$1" ~/.bashrc > /dev/null; then

View file

@ -1,5 +1,11 @@
#!/usr/bin/env zsh
# Check 'column' dependency
if ! command -v column &> /dev/null; then
echo "Command 'column' not available on the system, please make sure all dependencies are fulfilled."
exit 1
fi
# Adds $1 to ~/.zshrc if not already present
function _add_to_config {
if ! grep "$1" ~/.zshrc > /dev/null; then