refact : dotfiles folder
This commit is contained in:
parent
e5d611a4b8
commit
ed289c2858
63 changed files with 4 additions and 4 deletions
17
dotfiles/tmux/plugins/tpm/scripts/helpers/utility.sh
Normal file
17
dotfiles/tmux/plugins/tpm/scripts/helpers/utility.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
ensure_tpm_path_exists() {
|
||||
mkdir -p "$(tpm_path)"
|
||||
}
|
||||
|
||||
fail_helper() {
|
||||
local message="$1"
|
||||
echo "$message" >&2
|
||||
FAIL="true"
|
||||
}
|
||||
|
||||
exit_value_helper() {
|
||||
if [ "$FAIL" == "true" ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue