bunsenlabs / bunsen-common Goto Github PK
View Code? Open in Web Editor NEWCommon files for various BunsenLabs packages.
Home Page: https://pkg.bunsenlabs.org/debian/pool/main/b/bunsen-common/
License: GNU General Public License v3.0
Common files for various BunsenLabs packages.
Home Page: https://pkg.bunsenlabs.org/debian/pool/main/b/bunsen-common/
License: GNU General Public License v3.0
BunsenLabs Common Files ======================= These are files holding shell functions, images etc. that will be needed by various BunsenLabs packages.
Available for review at https://github.com/xaosfiftytwo/bunsen-common in x52 branch.
No need to repeat identical ignore-messages.
Grep pattern creation from array of strings.
Everything concerning apt-get concentrated in one internal function that can not be called directly, but only via 'exposed to the world' functions. Almost a public and private interface in bash.
Easily extendable.
Up to you. Do as you please. :)
This small test script shows the problem:
`
BL_COMMON_LIBDIR='/usr/lib/bunsen/bunsen-common'
if ! . "$BL_COMMON_LIBDIR/bl-include.cfg" 2> /dev/null; then
echo $"Error: Failed to locate bl-include.cfg in $BL_COMMON_LIBDIR" >&2
exit 1
fi
safeInstall autoconf
declare
exit 0
`
Output shows ignore_string{1,2,3} leak into the environment.
Solution: Make the variables local to the functions.
@john,
If you want these changes included, I can prepare and test patches.
xaos52
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.