{"push_id":975952315,"size":1,"distinct_size":1,"ref":"refs/heads/tr-v2","head":"a4b8471907c0540f14a7c89d97a13a59e3604b62","before":"b7c8fbf7881a1fd78e5925b15c0075126615c3af","commits":[{"sha":"a4b8471907c0540f14a7c89d97a13a59e3604b62","author":{"email":"d949e674c874509539ccf17410c90dc9ee260686@gmail.com","name":"Roy Ivy III"},"message":"refactor ~ move testing/creation of '$env:HOME' to 'install_app()'\n\n.# Discussion\n\n'$env:HOME' is an important environment variable pointer for many unix-y tools, so it\nmakes sense to create the variable (pointing to '$env:USERPROFILE').\n\nPreviously, `scoop` test/created the '$env:HOME' variable in the shim (for \"CMD/BAT\" and\n\"PS1\") scripts. However, that testing/creation was missing from `shim.exe` and therefore\nfrom all shimmed \".exe\" files. Instead of adding such instructions to `shim.exe`, a\nmore DRY solution was used, moving such testing/creation to the `scoop install` process.\nBy testing/creating '$env:HOME' within `scoop install` (via 'install_app()'), all shims\nare simplified and no longer cause silent (occasionally persistent), changes to the\n\"HOME\" environment variable.\n\nAdditionally, the rewritten code now uses '$env:USERPROFILE' without adding any extra\ntrailing slashes, mirroring other standard usage throughout CMD/PowerShell.","distinct":true,"url":"https://api.github.com/repos/rivy/scoop/commits/a4b8471907c0540f14a7c89d97a13a59e3604b62"}]}