Fix file creation in new repertory - notes - a console notes manager using git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) LICENSE
---
(DIR) commit cea5b42c3c084d8ecd936c42a5a29bcf3b90da49
(DIR) parent 6018bd950257b3deb3375fc36daa43dd64994e7b
(HTM) Author: Solene Rapenne <solene@perso.pw>
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(-)
---
(DIR) 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