Rename PINCH_ME_IM_SILLY to ALLOW_PREEXISTING_INSTALLATION

This commit is contained in:
Graham Christensen 2017-07-14 06:28:24 -04:00
parent 12f6bb33d2
commit e0d39c8dc4
No known key found for this signature in database
GPG key ID: 06121D366FE9435C
2 changed files with 4 additions and 4 deletions

View file

@ -417,8 +417,8 @@ setup_report() {
row " Build Users" "$NIX_USER_COUNT" row " Build Users" "$NIX_USER_COUNT"
row " Build Group ID" "$NIX_BUILD_GROUP_ID" row " Build Group ID" "$NIX_BUILD_GROUP_ID"
row "Build Group Name" "$NIX_BUILD_GROUP_NAME" row "Build Group Name" "$NIX_BUILD_GROUP_NAME"
if [ "${PINCH_ME_IM_SILLY:-}" != "" ]; then if [ "${ALLOW_PREEXISTING_INSTALLATION:-}" != "" ]; then
row " Silliness" "Very Silly" row "Preexisting Install" "Allowed"
fi fi
subheader "build users:" subheader "build users:"
@ -777,7 +777,7 @@ main() {
welcome_to_nix welcome_to_nix
chat_about_sudo chat_about_sudo
if [ "${PINCH_ME_IM_SILLY:-}" = "" ]; then if [ "${ALLOW_PREEXISTING_INSTALLATION:-}" = "" ]; then
validate_starting_assumptions validate_starting_assumptions
fi fi

View file

@ -88,7 +88,7 @@ verify
sudo mkdir -p /nix/store sudo mkdir -p /nix/store
sudo touch /nix/store/.silly-hint sudo touch /nix/store/.silly-hint
echo -n "" | PINCH_ME_IM_SILLY=true ./install echo -n "" | ALLOW_PREEXISTING_INSTALLATION=true ./install
verify verify
test -e /nix/store/.silly-hint test -e /nix/store/.silly-hint