Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 8602de8

Browse files
authored
Merge pull request #3374 from MarcFontaine/mafo/update-package-dep-graph-nixos
make compatible with nixos
2 parents e696232 + 569d88a commit 8602de8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/package-dep-graph.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#!/bin/bash -eu
1+
#!/usr/bin/env bash
22

3+
set -e
4+
set -u
35
################################################################################
46
# Check deps
57
################################################################################
@@ -60,7 +62,7 @@ done
6062
# Generate graph
6163
################################################################################
6264

63-
tmpdir=$(mktemp -d "${TMPDIR:-/tmp/}$(basename "$0").XXXXXXXXXXXX")
65+
tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/$(basename "$0").XXXXXXXXXXXX")
6466

6567
# 'tred' and 'dot' are in the 'graphviz' of most Linux distributions.
6668

0 commit comments

Comments
 (0)