nix: add "cd $rootdir" to all shell scripts via checked-shell-script
This commit is contained in:
committed by
Wolfgang Walther
parent
56557c9c40
commit
b5185de706
+1
-4
@@ -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
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user