Fix file creation in new repertory - notes - a console notes manager using git | |
Log | |
Files | |
Refs | |
Tags | |
LICENSE | |
--- | |
commit cea5b42c3c084d8ecd936c42a5a29bcf3b90da49 | |
parent 6018bd950257b3deb3375fc36daa43dd64994e7b | |
Author: Solene Rapenne <[email protected]> | |
Date: Sat, 14 Jul 2018 19:25:13 +0200 | |
Fix file creation in new repertory | |
Diffstat: | |
M notes | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/notes b/notes | |
@@ -48,7 +48,7 @@ edit() { | |
cd "$REPO" | |
if [ ! -d "$1" ] | |
then | |
- mkdir -p "$(dirname "$destdir")" | |
+ mkdir -p "$(dirname "$1")" | |
"$EDITOR" "$1" | |
if [ -f "$1" ] | |
then |