Skip to content

Commit 86fecf7

Browse files
committed
Fix rollback to old profiles
In 5d5da48 (#81), $DRY_ACTIVATE is used in a bash script with -u. When DRY_ACTIVATE is not set (which it is not for older profiles), the script fails. Fix this by setting a fallback.
1 parent 8dd6e23 commit 86fecf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
#!${pkgs.runtimeShell}
7474
set -euo pipefail
7575
76-
if [[ $DRY_ACTIVATE == "1" ]]
76+
if [[ "x''${DRY_ACTIVATE:-}" == "x1" ]]
7777
then
7878
${if builtins.hasAttr "dryActivate" customSelf
7979
then

0 commit comments

Comments
 (0)