Hi Le 08/10/2013 20:49, Bastian Bittorf a écrit : > build: generate_package_index: use 'sha256sum' in favor of 'openssl sha256' > > openssl is not available on all systems (or maybe not the implementation > of sha256), but maybe sha256sum. use openssl if 'sha256sum' is not installed. > > Signed-off-by: Bastian Bittorf <bitt...@bluebottle.com> > --- > scripts/ipkg-make-index.sh | 14 +++++++++++++- > 1 files changed, 13 insertions(+), 1 deletions(-) > > diff --git a/scripts/ipkg-make-index.sh b/scripts/ipkg-make-index.sh > index a2f3dea..07c97f0 100755 > --- a/scripts/ipkg-make-index.sh > +++ b/scripts/ipkg-make-index.sh > @@ -10,6 +10,18 @@ fi > > which md5sum >/dev/null 2>&1 || alias md5sum=md5 > > +if which sha256sum >/dev/null; then I've read here http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script that it's better to use "command -v" or "hash" instead of "which"
Regards Etienne _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel