snippits/bash/function_source.sh

4 lines
147 B
Bash

# If not running interactively, don't do anything
# Allows for using these functions as commands by sourcing this script
[[ $- != *i* ]] && return