We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da68aac commit 9a58b06Copy full SHA for 9a58b06
nix/module.nix
@@ -32,7 +32,7 @@
32
function symlink() {
33
if [[ -e "$2" && ! -L "$2" ]] ; then
34
echo "$2 exists and is not a symlink. Ignoring it." >&2
35
- return 1
+ return 0
36
fi
37
# prevents ln failing for symlinks that are directories
38
if [[ -d "$2" ]] ; then
@@ -47,7 +47,7 @@
47
if [[ -d "$1" ]] ; then
48
if [[ ! -L "$1" ]] ; then
49
echo "$1 exists and is not a symlink. Ignoring it." >&2
50
51
52
STORE_PATH=$(realpath "$1")
53
rm "$1"
@@ -67,7 +67,7 @@
67
else replaceFiles
68
}
69
70
- echo 1 > "$IMPURE_ACTIVE_FILE"
+ echo 1 > "$IMPURE_ACTIVE_FILE" || echo "[INFO] Unable to write to $IMPURE_ACTIVE_FILE"
71
''
72
+ (optionalString (cfg.dotsDir != "") ''
73
echo ""
0 commit comments