mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
fix(todo.txt): dont error if not in git repository
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let todo-txt-config = pkgs.writeText "todo.cfg" ''
|
let todo-txt-config = pkgs.writeText "todo.cfg" ''
|
||||||
export TODO_DIR="$(${pkgs.git}/bin/git rev-parse --show-toplevel || echo "$HOME/cloud/Dropbox/todo")"
|
export TODO_DIR="$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null || echo "$HOME/cloud/Dropbox/todo")"
|
||||||
|
|
||||||
export TODO_FILE="$TODO_DIR/todo.txt"
|
export TODO_FILE="$TODO_DIR/todo.txt"
|
||||||
export DONE_FILE="$TODO_DIR/done.txt"
|
export DONE_FILE="$TODO_DIR/done.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user