Skip to content

Commit

Permalink
1.18.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pruje committed Nov 25, 2020
1 parent 6788b94 commit 11132f3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog
This project adheres to [Semantic Versioning](https://semver.org/).

## 1.18.0 (2020-11-25)
### 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

## 1.17.1 (2020-07-17)
### Bugfixes
- Fix bug that could run false commands on Windows
Expand Down
4 changes: 1 addition & 3 deletions examples/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ lb_istrue $consolemode && lbg_set_gui console

# set log level
if ! $debugmode ; then
if ! lb_set_loglevel "$log_level" ; then
lb_display_error "Cannot set log level!"
fi
lb_set_loglevel "$log_level" || lb_display_error "Cannot set log level!"
fi

lb_display_debug "libbash.sh DEMO running in DEBUG mode...\n"
Expand Down
9 changes: 7 additions & 2 deletions libbash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
# Copyright (c) 2017-2020 Jean Prunneaux #
# Website: https://github.com/pruje/libbash.sh #
# #
# Version 1.17.1 (2020-07-17) #
# Version 1.18.0 (2020-11-25) #
# #
########################################################

declare -r lb_version=1.17.1
declare -r lb_version=1.18.0

# Index
#
Expand Down Expand Up @@ -2596,6 +2596,11 @@ lb_yesno() {
# question is missing
[ -z "$1" ] && return 1

# set labels if missing
[ -z "$yes_label" ] && yes_label=y
[ -z "$no_label" ] && no_label=n
[ -z "$cancel_label" ] && cancel_label=c

# print question (if not quiet mode)
if [ "$lb_quietmode" != true ] ; then
# defines question
Expand Down
2 changes: 1 addition & 1 deletion libbash_gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Copyright (c) 2017-2020 Jean Prunneaux #
# Website: https://github.com/pruje/libbash.sh #
# #
# Version 1.17.1 (2020-07-17) #
# Version 1.18.0 (2020-11-25) #
# #
########################################################

Expand Down

0 comments on commit 11132f3

Please sign in to comment.