Releases: pruje/libbash.sh
libbash.sh 1.10.0
Added
- New functions:
lb_getargs
andlb_getopt
to improve arguments parsing in scripts - New quiet mode to disable displays (+ editable variable
$lb_quietmode
)
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, please give us a star on Github to show your support to the project!
libbash.sh 1.9.2
Changes
- Detect
sed
version to makelb_edit()
work on any system - Some context variables are now read-only
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, please give us a star on Github to show your support to the project!
libbash.sh 1.9.1
Changes
- Use
lb_edit()
inlb_set_config()
to avoid create backup files
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, please give us a star on Github to show your support to the project!
libbash.sh 1.9.0
Added
- New function:
lb_edit()
to edit a file properly with thesed -i
command
Changes
lb_array_contains()
renamed tolb_in_array()
(old name kept for compatibility)lb_dir_is_empty()
renamed tolb_is_dir_empty()
(old name kept for compatibility)- Improve error management to avoid crashes when using command
set -e
- Code quality improved by ShellCheck
- Various performance improvements
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.8.0
What's new
- New function:
lb_split()
to split a string into array - New function:
lb_join()
to join array into string
Changes
lb_command_exists()
now returns only error code 1 and accepts multiple argumentslb_function_exists()
accepts multiple argumentslb_user_exists()
now returns only error code 1 and accepts multiple arguments- More strict results in
lb_is_number()
,lb_is_integer()
andlb_is_boolean()
: all arguments are verified lb_array_contains()
now returns 2 if no array is provided- Major code refactoring to improve local variables use and readability
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Documentation
Read documentation here and check the Wiki for tips and tricks on Bash
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.7.2
What's new
- Improvements in libbash.sh loading with new return codes
Read full changelog for more details.
Debian/Ubuntu package
Download the debian package in the assets section above to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
You can also check the package with the SHA-256 checksum.
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.7.1
Important notice
This release fixes a bug that affects all versions since 1.6.0 (see below). It is strongly recommended to upgrade to this version.
What's new
- Fix bad values in
$lb_current_script
$lb_current_script_name
and$lb_current_script_directory
(bug exists since v1.6.0) - Fix section bugs in
lb_read_config()
andlb_import_config()
when reading files with Windows end of line format
Read full changelog for more details.
Debian/Ubuntu package
Download the debian package below to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.7.0
What's new
- New function
lb_get_config()
to get a single value of a config file - You can now send emails in HTML and add files in attachments!
- Some optimizations and fixes
- Improvements in documentation
Read full changelog for more details.
Debian/Ubuntu package
Download the debian package below to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh
from a terminal or a script and you will have access to all the libbash functions and variables.
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.6.3
What's new
- Added the new
$lb_current_hostname
variable.
See changelog for more details.
Debian/Ubuntu package
Download the debian package below to use libbash.sh everywhere!
Just run source /usr/lib/libbash/libbash.sh [OPTIONS]
from a terminal or a script and you will have access to all the libbash functions and variables.
Help us
Please help us to improve libbash.sh by testing and report bugs or ask for new features here.
If you like libbash.sh, you can give a star on Github to show your support to the project.
libbash.sh 1.6.2
Fixed a bug on Windows for lb_set_logfile()
and lb_get_logfile()
which failed if logfile was in a samba share.
See changelog for more details.
Download the debian package below!
libbash.sh is put into /usr/lib/libbash
and allows you to use it everywhere!