From 6690c470e35053aab13911c95b100b0c81de8402 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Thu, 19 Sep 2024 10:18:17 +0200 Subject: [PATCH] check column dependency --- install.bash | 6 ++++++ install.zsh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/install.bash b/install.bash index 28cac40..fae0bef 100755 --- a/install.bash +++ b/install.bash @@ -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 diff --git a/install.zsh b/install.zsh index 4b0e5e1..507b9fc 100755 --- a/install.zsh +++ b/install.zsh @@ -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