Commit Graph
39 Commits
Author SHA1 Message Date
Richard Kuhnt e52c24c94e Add .NET 4.5 check to scoop install script (See #2487) 2018-08-20 15:07:18 +02:00
xeijin 0d4312370b Reset $errorActionPreference to original value (#2489)
For AppVeyor CI the `$errorActionPreference` setting is persisting after I install scoop, subsequently causing issues with installing scoop apps (e.g. failing the whole build because an installer executable outputs what looks like an error).
2018-08-11 20:47:28 +02:00
Chawye Hsu 731247876d [Pending] Finally we add the code linting and its tests! (#2108)
* Lint: PSPossibleIncorrectComparisonWithNull

* Lint: PSUseLiteralInitializerForHashtable

* Lint: PSUseBOMForUnicodeEncodedFile

* Lint: PSUseApprovedVerbs

* Lint: PSAvoidGlobalVars

* Lint: PSAvoidUsingEmptyCatchBlock

* Lint: PSUseShouldProcessForStateChangingFunctions

* Lint helper: Add PSScriptAnalyzer integration for vscode

* Fix lint: PSUseBOMForUnicodeEncodedFile

* Tests: ignore previous TestResults.xml

* Tests: add PowerShell script linting into tests!

* Add PSScriptAnalyzer into appveyor ci

* Update Scoop-Linting.Tests.ps1
2018-03-13 14:26:55 +01:00
Richard Kuhnt 044b168fe6 Avoid using cmdlet aliases in installer script 2017-09-12 21:46:20 +02:00
Richard Kuhnt 141aa3df95 Add PowerShell 3 warning to scoop installer script
`#requires -v 3` doesn't get evaluated by running `iex` on the downloaded script.
Related issues #1700, #1524, #1462
2017-09-12 21:38:15 +02:00
Luke Sampson 887f041fc7 Extract to _tmp instead of _scoop_extract to conserve 10 more characters in path. 2017-05-29 17:59:09 +10:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Luke Sampson f5cbae7707 Check the effective execution policy rather than limit to current scope, in case it is defined for the machine and not the user (see #1221) 2017-01-23 09:55:22 +11:00
Luke Sampson 1340a762f6 allow and recommend 'RemoteSigned' execution policy (see #1221) 2017-01-23 09:50:31 +11:00
Mikhail-T cc37f6e335 improved message 2016-12-25 17:42:07 -06:00
Mikhail-T 4aebd39d8b show message only if execution policy is not set 2016-12-25 17:28:01 -06:00
Mikhail-T 566608b695 confirm making execution policy change 2016-12-25 16:57:38 -06:00
Mikhail-T 03c9f4e1f3 removed trailing spaces 2016-12-24 21:08:26 -06:00
Mikhail-T 73a2fcae35 set execution policy on scoop install
I've tested this by running updated script as below:
```iex (new-object net.webclient).downloadstring('https://gist.githubusercontent.com/mikhail-tsennykh/f65a3addf22b36681b1eb7c6d708bed2/raw/4040fe0c156512a63b1dcfea2fd5595b26e1a1f1/scoop%2520auto%2520set%2520execution%2520policy%2520test')```

nice to skip extra step (unless there is some good reason not to do it on scoop install).
2016-12-24 21:03:53 -06:00
Luke Sampson b30afe650d don't terminate Powershell session when calling install with invoke-expression (see #980) 2016-08-15 07:10:33 +10:00
Roy Ivy III 6d9bca805f whitespace cleanup
* 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)
2015-08-17 22:54:43 -05:00
Simon Hartcher 1a2db05366 Fix #376 Robocopy is not always in PATH
Add ensure_robocopy_in_path method to core.ps1 which checks if
robocopy is available, then shims it if not.
2015-05-30 17:53:41 +10:00
Simon Hartcher 24347c2afb Revert "Add ability to reset scoop (also adds Git Bash support)" 2015-05-10 12:05:11 +10:00
Simon Hartcher 5cdc47214a Add .bashrc generation to install script
Fixes #354
2015-05-09 23:38:32 +10:00
Simon Hartcher ed3972ee75 Removed unused timestamp code 2015-04-04 14:58:04 +11:00
Luke Sampson 32dc679ec9 add MSI extraction, deprecate MSI install (see issues #16, #18) 2013-12-23 11:20:54 +10:00
Luke Sampson 634464e3de simpler, faster unzip (5x speedup, see #35) 2013-12-02 12:33:40 +10:00
Luke Sampson 555e189d33 beginning refactoring for global installs 2013-08-30 16:58:20 +10:00
Luke Sampson 7ccaf2b1cd fix bug in install trying to write last_updated, remove shims one-by-one when uninstalling apps so they aren't left around to cause strange errors when another app dir can't be deleted later down the line 2013-08-15 15:05:19 +10:00
Luke Sampson 7382e17561 convert spaces to tabs 2013-08-15 13:05:00 +10:00
Luke Sampson 6579adf365 remember when scoop was last updated and report this in 'scoop status' 2013-08-05 16:43:59 +10:00
Luke Sampson f1d67b5eec for install, don't call abort if invoked with iex, because that will kill the ps session 2013-08-02 09:34:46 +10:00
Luke Sampson 79c76be6fe add #requires -v 3 to install and scoop 2013-06-29 10:39:58 +10:00
Luke Sampson 9f4be7d3cd rename 'bin stubs' to 'shims' 2013-06-27 15:42:58 +10:00
Luke Sampson e5450a8091 use https://get.scoop.sh to install 2013-06-26 19:02:22 +10:00
Luke Sampson 10eb5b7c53 unzip: allow targeting a folder inside the zip 2013-06-21 18:13:51 +10:00
Luke Sampson 1260a8ef7d moved 'bin\install -l' stuff to 'bin\refresh' 2013-06-21 09:36:26 +10:00
Luke Sampson 7bf133dc72 self-update working 2013-06-20 20:51:41 +10:00
Luke Sampson c54e58947f testing qsort 2013-06-19 16:57:28 +10:00
Luke Sampson f82fc247eb starting on self-update/versioning support 2013-06-19 11:38:32 +10:00
Luke Sampson 3f386c7186 install working for powershell script? 2013-06-17 09:23:31 +10:00
Luke Sampson 8ebddce654 started on command dispatch 2013-06-16 01:16:26 +10:00
Luke Sampson d67f76d336 working out how to include lib/init.ps1 2013-06-15 15:44:27 +10:00
Luke Sampson 7257eded1f reorganisation 2013-06-15 15:34:09 +10:00