This change should reduce issues with outdated manifests/hashes/URLs.
Every successful execution of `scoop update` will save the date/time to `~\.scoop`
Every execution of `scoop update x` or `scoop install x` will check last saved date/time and run `scoop update` beforehand if the last run was more than 3 hours ago.
If the old manifest is not available no $architecture is loaded
resulting in an error while installing the update.
This happend for example for php if there was a conf directory along the
versions. `conf` will be picked up as latest version but there is no
manifest inside. #1185
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* persist nodejs fix npm updating itself
* A NodeJS install with persistence that doesn't use $persist_dir variable in manifest
* Fix 'Access is denied' error removing 'current' directory junction.
* change nodejs install behaviour to match upstream installer
`npm update -g` has been remove because it has no effect on the
installed npm version and does not match the official installer
behaviour.
* try catch on update
fixes#1118
* deleting the right dir
* added -ea stop to git command
* added try catch to bucket update
* removing space
* Removing -ea from git command, since it isn´t a scriptlet
* When git clone fail, it does not create de $newdir, so I changed the code
to check for this path.
When the git pull fail, nothing happens, so It doesnt need any changes
Also, git error could not be catch in powersheel exception
* removing blank lines
Commands that call git from scoop will now pass proxy details. The
command is executed using `cmd` to avoid polluting the user's
environment as the variables set will die with the process.
Fixes#842
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
When an app versioned as "nightly" is installed (or updated),
the current date is appended to the version which changes the
version directory to nightly-yyyymmdd.
Fixes#181