Nicolas Arnaud-Cormos
949cbabac0
Make scoop home agnostic
...
Rather use (Get-PsProvider 'FileSystem').home, in case the user
~ is not pointing to $home.
This can happen if the user wants to keep $home on $Env:USERPROFILE
but is working in a different folder and want it to be ~ (for simplicity).
2017-07-13 20:59:26 +02:00
Richard Kuhnt
a92b76905e
Running sccop from cmd without args should show help ( closes #1530 )
2017-06-02 17:46:27 +02:00
Richard Kuhnt
e67d176d95
Change environment variables to uppercase
2017-05-31 00:27:21 +02:00
Richard Kuhnt
f737315e73
Merge pull request #1517 from lukesampson/unix-compatible
...
[WIP] Add Unix compatibility (for maintenance jobs and manifest testing)
2017-05-30 21:59:15 +02:00
Richard Kuhnt
392bdf1a07
Move helper functions to unix.ps1 and updated comment
2017-05-28 14:08:27 +02:00
Richard Kuhnt
24fd3a3c7e
Move unix compatible functions to unix.ps1
...
- Change helper functions to snake_case
2017-05-28 13:59:42 +02:00
Richard Kuhnt
5b4b2fce99
Some path fixes for unix
2017-05-27 17:12:37 +02:00
Richard Kuhnt
d28cf794cc
Add isUnix/isLinux/isMacOS helper functions
2017-05-27 17:07:36 +02:00
Richard Kuhnt
a8de45f214
Use write-output instead of echo
2017-05-27 13:15:34 +02:00
Luke Sampson
cef2564564
Escape tildes when generating .cmd shim.
2017-05-25 08:38:03 +10:00
Luke Sampson
58574b97d3
Escape parentheses when passing arguments from .cmd shims to PowerShell.
2017-05-25 07:37:47 +10:00
Richard Kuhnt
c89d82762a
Use 'mkdir -p' to create directories with ensure()
2017-05-24 21:48:45 +02:00
Richard Kuhnt
1c1d3fd16e
Overwrite default path ($scoopdir, $globaldir and $cachedir)
2017-05-24 21:47:12 +02:00
Richard Kuhnt
75ea431922
Make core.ps1 and install.ps1 able to run on unix
2017-05-24 19:59:24 +02:00
Luke Sampson
a4d44ac8f0
Allow .cmd shims to pass double-quoted arguments to PowerShell (see lukesampson/psutils#17 ).
2017-05-23 20:55:22 +10:00
Richard Kuhnt
4eb666c6ee
Introducing $baseurl variable for hash file downloads
2017-05-14 14:53:25 +02:00
Richard Kuhnt
106daa83fd
Regression 92ab8f5e8, readd substitute()
2017-05-14 05:12:18 +02:00
Richard Kuhnt
92ab8f5e80
Move some functions to core.ps1
2017-05-14 04:54:32 +02:00
Luke Sampson
47aac5b6ba
Revert to ~ means $home instead of $env:userprofile ( fix #1442 )
2017-04-21 16:59:00 +10:00
Luke Sampson
adf0e2cdaf
Adjust style, use $env:userprofile for consistency
2017-04-21 08:41:43 +10:00
Marty Gentillon
6396fef55e
Fixed bug where $home doesn't support .endswith
...
In Windows 10, at least after the Creators update, $h is of type
PathInfo, which does not support String operations. By toStringing it,
we turn it into a String and enable the expected String operations.
see https://github.com/lukesampson/scoop/issues/1440
2017-04-20 15:27:37 -07:00
Richard Kuhnt
084f54ed47
Fix newline
2017-04-15 13:59:50 +02:00
Richard Kuhnt
3050a44244
Fix hash detection and improve json path for arrays
2017-04-15 13:58:55 +02:00
Simon Hartcher
836f03db72
Merge pull request #1332 from lukesampson/install-specific-version
...
Installing specific versions using autoupdate feature
2017-04-05 16:07:27 +10:00
Richard Kuhnt
8e97c2bcc6
Allow uninstalling multiple programs even if some fail or don't exist
2017-04-03 13:13:02 +02:00
Richard Kuhnt
f7e97f949f
replace test-path with is_directory in installed()
...
prevents unwanted behavior with wildcard characters
'scoop uninstall test*' outputs something about removing 'test' and 'test123' but fails silently
2017-04-02 22:30:04 +02:00
Rémy
5053c41bf0
Merge branch 'master' into install-specific-version
2017-04-02 22:10:50 +02:00
Simon Hartcher
a00e9ba415
Change usermanifests directory to $env:scoop/workspace
2017-04-02 13:28:54 +10:00
Simon Hartcher
e799eb1717
Allow resetting of specific version installs
2017-03-31 20:03:13 +11:00
Simon Hartcher
2b96081c21
Merge branch 'master' into install-specific-version
2017-03-31 18:43:23 +11:00
Rémy
36e61b54f9
normalize persist terms
2017-03-26 14:08:58 +02:00
Rémy
6d00ecc60d
persitent data fix global installations
2017-03-25 17:47:17 +01:00
Rémy
357b33ddfe
persist file support
2017-03-25 16:28:06 +01:00
Rémy
cafefdf658
intial persist implementation
2017-03-25 16:28:05 +01:00
Richard Kuhnt
53f0e2c590
Fix relative-path to other drives which could break shims
2017-03-24 21:58:01 +01:00
Richard Kuhnt
fc522ff8ae
Fix strip_filename for URLs with query parameters
2017-03-23 16:47:01 +01:00
Richard Kuhnt
9a650799e0
Strip filename from referer url
2017-03-21 17:52:10 +01:00
Richard Kuhnt
c682723d99
Add referer-header to all webrequests
2017-03-19 16:29:27 +01:00
Luke Sampson
5a6a8733c0
Tweak $env:SCOOP_CACHE and note
2017-03-06 16:50:34 +11:00
wangzq
02d09a5b35
Use environment variable SCOOP_CACHE to override cache dir
2017-03-05 21:15:42 -08:00
Simon Hartcher
9dfc30f931
Add basic specific version installation using autoupdate
2017-02-13 23:34:51 +11:00
Luke Sampson
e8e5ac5615
Update more UI messages for consistency.
2017-02-13 20:53:36 +11:00
Luke Sampson
1c173bc56d
Use sentence case for UI messages.
2017-02-13 20:20:41 +11:00
Luke Sampson
dd5dbfdb5c
reset gm => get-member alias ( fixes #1222 )
2017-01-18 09:15:37 +11:00
Luke Sampson
fc54b2fd58
switch from ~/appdata/local/scoop to ~/scoop for new installation
2016-11-01 11:57:52 +11:00
Luke Sampson
01f1b05f3f
fix .cmd shims should be ASCII ( #896 )
2016-06-08 07:27:42 +10:00
Luke Sampson
c95b8431f6
fix #889
2016-06-03 23:28:02 +10:00
Luke Sampson
cd8fc02075
potential fix for 'scoop which' running under LocalSystem account (see #889 )
2016-06-03 19:17:14 +10:00
Luke Sampson
291f6caf80
restore @deevus's relative paths ( fixes #443 )
2016-06-03 19:13:06 +10:00
Luke Sampson
68da60c2c9
use UTF8 encoding for shims for better handling of usernames containing special characters ( fixes #572 )
2016-06-03 18:00:40 +10:00