Skip to content

Commit 27a9dd5

Browse files
committed
check for nixos or wsl
1 parent 60c541e commit 27a9dd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ixnay

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ ixnay() {
254254
#help -- and then displays it.
255255
#help -- NixOS required currently. May work with nix-darwin in the future.
256256
#help -- (The "here" arg is a synonym for the other "no-upgrade" options.)
257-
if [ "$DISTRO" = "nixos" ]; then
257+
if [ "$DISTRO" = "nixos" ] || [ "$DISTRO" = "wsl" ]; then
258258
# make sure we're not just doing a dry run
259259
if ! [ -n "${DRY_RUN}" ]; then
260260
# rename the last logfile to its timestamp
@@ -727,3 +727,4 @@ if [ "$me" = "ixnay" ]; then
727727
# shellcheck disable=SC2048,SC2086
728728
ixnay $*
729729
fi
730+

0 commit comments

Comments
 (0)