-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables #2
Comments
Currently, the installer doesn't save This is a known issue. But yeah, exposing $SCOOP_DIR = if ($env:SCOOP) { $env:SCOOP } else { $ScoopDir } # Scoop root directory
$SCOOP_GLOBAL_DIR = if ($env:SCOOP_GLOBAL) { $env:SCOOP_GLOBAL } else { $ScoopGlobalDir } # Scoop global apps directory
$SCOOP_CACHE_DIR = if ($env:SCOOP_CACHE) { $env:SCOOP_CACHE } elseif ($env:SCOOP) { "$SCOOP_DIR\cache" } else { $ScoopCacheDir } # Scoop cache directory
$SCOOP_SHIMS_DIR = "$SCOOP_DIR\shims" # Scoop shims directory
$SCOOP_APP_DIR = "$SCOOP_DIR\apps\scoop\current" # Scoop itself directory
$SCOOP_CORE_BUCKET_DIR = "$SCOOP_DIR\buckets\core" # Scoop core bucket directory @r15ch13 @lukesampson any idea? |
#3 should close this, but I would like to format all variables in
|
@Ash258 @r15ch13 new implementation in #4 , please take a review and give advice. Introduction:
|
Actual implementation should be respected. Upstream implementation is possible to set using environament varibles (not script parameters).
There is no need to set -InstallPath parameter, when you set
$env:SCOOP
(SCOOP_GLOBAL, SCOOP_CACHE)https://github.com/scoopinstaller/install/blob/a4e4238c6b234626ae8d973529135e4398a1314b/install.ps1#L68-L73
All these variables should be surrounded by
if ($env:SCOOP) { $SCOOP_DIR = $env:SCOOP} else { $SCOOP_DIR = $ScoopDir}
The text was updated successfully, but these errors were encountered: