scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit 9f1d038752b4a660df5d8a65303487f7b5e01502
parent 55ac04698ae77c6f56541a99379b93b4623fe652
Author: gearsix <gearsix@tuta.io>
Date:   Thu, 31 Mar 2022 12:24:52 +0100

mkded: added '-p' to mkdir; checks for $2 before touch

Diffstat:
Mnix/mkded.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nix/mkded.sh b/nix/mkded.sh @@ -10,7 +10,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then exit fi -mkdir $1; +mkdir -p $1; cd $1; -touch $2; +if [ $2 ]; then touch $2; fi $EDITOR $2;