You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I decided to create a support for FreeBSD, just because pkgng is great. Requires bash package to be installed (it isn't by default in FreeBSD). The reason why /usr/bin/env bash is used is that FreeBSD uses /usr/local/bin/bash.
Here are some comments would you mind taking a look?
The documentation would be updated in the script, not directly in README.md file. This is because README.md is generated (to help Github). Please check the function _help().
The function _exec_ was updated to support install for FreeBSD's pkg. However, this only happens once for the Synchornization operation. I think it's better to add a trick (e.g, on the line 687) instead of changing the function _exec_ that would alter on all distributions. This is because I really want to use $@ expansion feature, not $* feature (that may be a different in any future use.)
Is there any better way to detect if FreeBSD is being used? It's good to use /usr/sbin/pkg; it just wonder if there is more robust way.
On May 4th, 2014, the master branch is closed. The script is written in a new way, and can be found on the ng branch. This pull request will not be merged. However, I keep it open, because we will find a way to integrate the function into the ng branch (by creating new library file lib/pkgng.sh)
icy
added a commit
that referenced
this pull request
May 5, 2014
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I decided to create a support for FreeBSD, just because pkgng is great. Requires
bashpackage to be installed (it isn't by default in FreeBSD). The reason why/usr/bin/env bashis used is that FreeBSD uses/usr/local/bin/bash.