Skip to content

Releases: pruje/libbash.sh

libbash.sh 1.10.0

19 Jan 16:37
Compare
Choose a tag to compare

Added

  • New functions: lb_getargs and lb_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

26 Aug 14:13
Compare
Choose a tag to compare

Changes

  • Detect sed version to make lb_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

06 Jul 21:03
Compare
Choose a tag to compare

Changes

  • Use lb_edit() in lb_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

08 Jun 21:45
Compare
Choose a tag to compare

Added

  • New function: lb_edit() to edit a file properly with the sed -i command

Changes

  • lb_array_contains() renamed to lb_in_array() (old name kept for compatibility)
  • lb_dir_is_empty() renamed to lb_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

27 Jan 17:41
Compare
Choose a tag to compare

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 arguments
  • lb_function_exists() accepts multiple arguments
  • lb_user_exists() now returns only error code 1 and accepts multiple arguments
  • More strict results in lb_is_number(), lb_is_integer() and lb_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

16 Dec 18:23
Compare
Choose a tag to compare

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

01 Dec 17:18
Compare
Choose a tag to compare

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() and lb_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

25 Nov 16:03
Compare
Choose a tag to compare

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

13 Nov 17:07
Compare
Choose a tag to compare

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

18 Oct 16:51
Compare
Choose a tag to compare

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!