dotfiles/dot_common.sh
2020-11-22 23:35:09 -06:00

5 lines
169 B
Bash

#!/bin/bash
# Should not be executable, only sourced by other scripts
command_exists() { command -v ${1} >/dev/null; }
source_if_exists() { [ -f "$1" ] && source $1; }