summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnix-script-show-generation.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/nix-script-show-generation.sh b/nix-script-show-generation.sh
index b08ba83..5924846 100755
--- a/nix-script-show-generation.sh
+++ b/nix-script-show-generation.sh
@@ -38,12 +38,7 @@ do
esac
done
-if [[ $SYSTEM -eq 1 ]]
-then
- current_system_generation
-else
- current_user_generation
-fi
+([[ $SYSTEM -eq 1 ]] && current_system_generation) || current_user_generation
stdout "Ready"