jwerle
de503e955e
refactor(): support 'bpkg.json'
3 years ago
Ben Peachey
4af346da14
Fix more Shellcheck violations.
3 years ago
Ben Peachey
af4d935075
Fix more Shellcheck SC2034 violations.
3 years ago
Ben Peachey
447269a7ff
Fix more Shellcheck SC2155 violations.
3 years ago
Ben Peachey
574a928de8
Fix various Shellcheck violations.
3 years ago
Ben Peachey
7494024a57
Fix all Shellcheck SC2206 violations.
3 years ago
Ben Peachey
4c6a99ad3b
Remove unused variable.
3 years ago
Ben Peachey
28b14b9fdd
Fix all Shellcheck SC2034 violations.
3 years ago
Ben Peachey
a53a6648cc
Fix all Shellcheck SC2155 violations.
3 years ago
Ben Peachey
427ad007be
Fix all Shellcheck SC2230 violations.
3 years ago
Ben Peachey
ef99e9550d
Fix all Shellcheck SC2219 violations.
3 years ago
Ben Peachey
d30daebb1b
Fix all Shellcheck SC2236 violations.
3 years ago
Ben Peachey
355a1bd49d
Fix all Shellcheck SC2086 violations.
3 years ago
Ben Peachey
0485cbd0ba
Fix all Shellcheck SC2059 violations.
3 years ago
Ben Peachey
2e17e87472
Fix all Shellcheck SC2053 violations.
3 years ago
Ben Peachey
f55825365e
Fix all Shellcheck SC2004 violations.
3 years ago
Ben Peachey
dd4bfbd678
Fix all Shellcheck SC1090 violations.
3 years ago
Ben Peachey
ca20c53aff
Add support for bpkg.json, next to package.json.
3 years ago
Francesco Bianco
1103e4bd2e
Fix unresolved branch in repository that use 'main' instead of 'master' as default branch
3 years ago
Joseph Werle
707863ee25
refactor(lib/install/install.sh): Use single bracket with quoted USER env variable
5 years ago
Dominic Giglio
9d497908cd
refactor(lib/install/install.sh): Use double-quotes and double bracket conditional compound
5 years ago
Jean Claveau
9ce37a2f98
prefix by user during install
5 years ago
Dmitri Gopkalo
b192e96790
Update install.sh
6 years ago
Dmitri Gopkalo
922217b616
package_json_name_parse_fix
...
- fix problem when we has
package.json with:
``` "files": ["lib/name.sh"]```
6 years ago
Ben Peachey
1107d7608c
Changes various (text) files to *not* be executable
...
This change affects LICENSE, README.md, package.json and Makefile files.
7 years ago
Ben Peachey
d843146bd0
Fixes bug in bpkg-install global check
...
The bug occurred when a "global" section was present in a `packages.json` file but had a value other than "true".
Due to the logic of the check, such a package would then be marked for global install.
7 years ago
Ben Peachey
b3e80ec22f
Fixes bug in bpkg-install scripts download
...
The bug occurred when scripts were not in the root of the package.
Also cleans up the download logic for the files section.
7 years ago
Ben Peachey
4aa4e4b51a
Add message in bpkg-install clarifying sub-dependencies are being installed.
7 years ago
Ben Peachey
0b21ee1b21
Changes logic to create array from JSON sections in bpkg-install.
7 years ago
Ben Peachey
d0df4f28f1
Fixes bug in bpkg-install global check
...
Bug was caused by incorrect placement of quoute character, causing the result of a check to be incorrect.
7 years ago
Ben Peachey
ba0308f5c3
Fixes bug in save_remote_file function in bpkg-install
...
The bug occurred if a save-path did not exists. The function now attempts to create the directory before trying to save a file to it.
7 years ago
AdrieanKhisbe
62d6d15ee9
checkout the right version in the cloned repository during install
7 years ago
Joseph Werle
9bbe98c624
bpkg.io > bpkg.sh
...
Update script to reflect new domain
7 years ago
Christopher B. Hauser
b55bc82ebd
fix scripts array for loop, issue #82 ( #84 )
7 years ago
Ben Peachey
e9a0278bce
Adds missing null check ( #83 )
...
Adds a check to make sure that the "$scripts" array in the install script is not empty.
7 years ago
Ben Peachey
2a30578d0b
Issues 78 - Makes `install.sh` more shellcheck compliant. ( #81 )
...
* Issues 78 - Makes `install.sh` more shellcheck compliant.
* Adds wrapper for curl calls.
* Replaces unneeded double quotes with single quotes.
* Replaces single bracket tests with double bracket tests.
* Adds function for saving remote files locally.
* Adds null checks.
* Fixes incorrect curl parameters.
* Wraps logic to get package.json in separate function.
* Adds cleaner solution for curl calls in install.sh.
8 years ago
Abdelkafi Ahmed
0617f26461
Replace ` ` with $( ) inside strings and in commands ( #77 )
...
* Changed how to execute shell commands inside output strings
* Removed the extra { }
* Drop changes to JSON files inside lib/json
8 years ago
Benoit Hiller
8c48808195
moving local only prep into other branch
...
This changes moves things like creating the deps dir and installing
dependencies into the local branch of the installer. This will stop
it from trying to install dependencies when you do global installs.
Installing dependencies for global installs doesn't look like it
actually worked though.
8 years ago
Benoit Hiller
5916a6b3de
preventing double install
...
The existing behaviour was to perform a global install in addition to
a local one rather than instead of.
fixes #70
8 years ago
Joseph Werle
ac0f1f5d16
Merge pull request #68 from nfischer/fix-return-status
...
Fix template return code generated by `bpkg init`
8 years ago
Nate Fischer
b570ebfcd0
Clarify that "username" means "Github username"
8 years ago
Nate Fischer
887fb48c11
Fix template return code generated by `bpkg init`
8 years ago
brandonocasey
5b707579cb
added files array support to install/package.json
...
updated readme with files entry
moved package.json copy near the start of install
moved directory creation to the start of install
moved getdeps to the start of install
9 years ago
Troy Howard
af0efc54c5
add recursive dependency resolution via package.json
9 years ago
Joseph Werle
7cc8b1e126
fix typo
9 years ago
JuanPablo
3091eef2f2
after local install, script to PATH
...
* if the installed file is a script in the json file, after
install, a symbolic link is made from
deps/package_name/script.sh -> deps/bin/script
and the script get user execution permissions
10 years ago
Chris Carpita
5ad5fc9318
Improvements to bpkg init
...
- Generate README.md file with description and install directions pre-filled
- Generate $NAME.sh file with boilerplate, including source-check, usage,
- argument processing, and version print.
- Nice default for package.json "install" field
- Initialize git repo if one does not exist
- Fix issue with prompt where delete key erased prompt, by using `read -p`
10 years ago
Chris Carpita
cc6d9dd6fe
Separate command doc from option doc
10 years ago
Chris Carpita
8b9c57cfbf
Use ordered parameters for readme/sources, fix for git remote auth disclosure
10 years ago
Chris Carpita
9c537d7b73
Add command (show) to display package details from remote
...
- Use --details flag to print remote README.md
- Use --source flag to print scripts sources
10 years ago