Skip to content

Releases: pruje/libbash.sh

1.22.9

20 Jun 21:10

Choose a tag to compare

What's new?

Changes

  • Use command -v instead of which to check if a command exists
  • Use id -nG instead of groups to list user groups
  • Improvements in unit tests

deb/rpm packages

You can download the deb or rpm packages in the assets section below to use libbash.sh everywhere!
Just run source /usr/lib/libbash.sh/libbash.sh from a terminal or a script and you will have access to all the 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, please give us a star on Github to show your support to the project!

1.22.8

07 Jun 12:24

Choose a tag to compare

What's new?

New features

  • New deb & rpm packages automatic builds for GitHub

deb/rpm packages

You can download the deb or rpm packages in the assets section below to use libbash.sh everywhere!
Just run source /usr/lib/libbash.sh/libbash.sh from a terminal or a script and you will have access to all the 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, please give us a star on Github to show your support to the project!

1.22.0

06 Jun 19:42

Choose a tag to compare

What's new?

New features

  • New --ignore-errors option when loading libbash.sh to ignore non-critical loading errors
  • New --strict option for lb_yesno to force user to prompt yes or no
  • New --strict option for lb_choose_option to force user to choose an option
  • Added unit tests powered by BATS

Changes

  • Remove --label option to lb_input_password (deprecated since 1.3.0)
  • Remove lb_detect_os alias (deprecated since 1.0.0)
  • Remove lb_array_contains alias (deprecated since 1.9.0)
  • Remove lb_dir_is_empty alias (deprecated since 1.9.0)
  • Remove lb_test_arguments (deprecated since 1.19.0)

Bugfixes

  • Fixed error in lb_say on macOS and Windows

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!

1.21.0

03 Jun 07:55

Choose a tag to compare

What's new?

New features

  • New function lb_say to say something with text-to-speech
  • New --say option to lb_display and lb_result

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.20.0

17 Feb 00:03

Choose a tag to compare

What's new?

New features

  • lbg_notify is now supported on Windows using PowerShell
  • Filters in lbg_choose_file are now supported on macOS

Changes

  • Minor code improvements

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.19.0

04 Feb 21:31

Choose a tag to compare

What's new?

New features

  • New --template option to lb_import_config to import variables only defined in a template file

Changes

  • lb_test_arguments is deprecated, but not removed to not break compatibility

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.18.1

21 Jan 19:20

Choose a tag to compare

What's new?

Bugfixes

  • Fix bug that prevented email to be sent if old mail command was installed

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.18.0

25 Nov 12:38

Choose a tag to compare

What's new?

New features

  • New function lb_ami_root to test if current user is root

Changes

  • Improve lb_current_uid
  • Improve performance by removing internal functions calls
  • Improves functions independence if you want to copy/paste one of them in a script without loading libbash.sh

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.17.1

17 Jul 14:44

Choose a tag to compare

What's new?

Bugfixes

  • Fix bug that could run false commands on Windows
  • Secure lb_import_config with escape of < and > characters

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!

1.17.0

17 Jul 13:01

Choose a tag to compare

What's new?

New features

  • New function lb_cmd_to_array to store results of a command in an array.
  • New function lb_current_uid (and $lb_current_uid variable) to get the current user uid
  • New constant variable $lb_current_uid

Changes

  • lb_in_group default user is get by whoami command

Debian/Ubuntu package

You can download the deb package in the assets section 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.

  • deb packages are build with deb-builder tool. Build config is available here
  • you can 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, please give us a star on Github to show your support to the project!