1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

fix(todo.sh): remove git error message

This commit is contained in:
Kierán Meinhardt
2020-01-25 18:26:25 +01:00
parent d7aca4feb6
commit 4985017bcd

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }:
let
get-todo-dir = pkgs.writers.writeDash "git-toplevel-todo" ''
if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel); then
if GIT_TOPLEVEL=$(${pkgs.git}/bin/git rev-parse --show-toplevel 2>/dev/null); then
echo "$GIT_TOPLEVEL/.todo"
else
echo "$HOME/cloud/Dropbox/todo"