From b706dd0b209d9c07b1a7676d10813615a2482997 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 11 Dec 2015 14:15:04 +1300 Subject: Create bashkeep directory if it doesn't exist --- bash/bashrc.d/keep.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash/bashrc.d') diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash index bdb5c2de..6295069d 100644 --- a/bash/bashrc.d/keep.bash +++ b/bash/bashrc.d/keep.bash @@ -11,6 +11,7 @@ keep() { # Figure out the directory to which we're reading and writing these scripts local bashkeep bashkeep=${BASHKEEP:-$HOME/.bashkeep.d} + mkdir -p -- "$bashkeep" || return # Parse options local opt delete -- cgit v1.2.3