check column dependency
This commit is contained in:
parent
3d1adc0c12
commit
6690c470e3
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue