nix: add "cd $rootdir" to all shell scripts via checked-shell-script

This commit is contained in:
Wolfgang Walther
2020-12-24 14:44:01 +01:00
committed by Wolfgang Walther
parent 56557c9c40
commit b5185de706
6 changed files with 39 additions and 39 deletions
+1 -4
View File
@@ -3,7 +3,6 @@
, checkedShellScript
, devCabalOptions
, entr
, git
, silver-searcher
, style
, tests
@@ -12,10 +11,8 @@ let
watch =
checkedShellScript "postgrest-watch"
''
rootdir="$(${git}/bin/git rev-parse --show-toplevel)"
while true; do
(! ${silver-searcher}/bin/ag -l . "$rootdir" | ${entr}/bin/entr -dr "$@")
(! ${silver-searcher}/bin/ag -l . | ${entr}/bin/entr -dr "$@")
done
'';