Skip to content

Commit a137aa3

Browse files
committed
homepage-dashboard: use subshell instead of pushd/popd
I find less state easier to reason about.
1 parent 349b7f8 commit a137aa3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkgs/servers/homepage-dashboard/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ buildNpmPackage rec {
7878
# This patch ensures that the cache implementation respects the env
7979
# variable `HOMEPAGE_CACHE_DIR`, which is set by default in the
8080
# wrapper below.
81-
pushd $out
82-
patch -p1 <${./prerender_cache_path.patch}
83-
popd
81+
(cd "$out" && patch -p1 <${./prerender_cache_path.patch})
8482
8583
makeWrapper $out/share/homepage/server.js $out/bin/homepage \
8684
--set-default PORT 3000 \

0 commit comments

Comments
 (0)