Skip to content

Commit

Permalink
1.6.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pruje committed Oct 18, 2017
1 parent d5789c5 commit 3ceb602
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.6.2 (2017-10-18)
- [Windows] Fixed a bug for `lb_set_logfile()` and `lb_get_logfile()` which failed if logfile was in a samba share

## 1.6.1 (2017-10-13)
- New aliases for display functions:
- `lb_warning()` -> `lb_display_warning()`
Expand Down
12 changes: 12 additions & 0 deletions docs/libbash.md
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,18 @@ real_path=$(lb_realpath /path/link_to_file)
### lb_is_writable
Test if a path (file or directory) is writable.

#### The weird Samba case
On Windows, this may fails if you are not owner on a network share file/folder.
We recommand you to do something like the following if you can be in this case:

```bash
if ! lb_is_writable "$logfile" ; then
if [ "$(lb_df_fstype "$(dirname "$logfile")")" != smbfs ] ; then
echo "File is not writable!"
fi
fi
```

#### Usage
```bash
lb_is_writable PATH
Expand Down
2 changes: 1 addition & 1 deletion inc/libbash_gui.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
' # Copyright (c) 2017 Jean Prunneaux #
' # Website: https://github.com/pruje/libbash.sh #
' # #
' # Version 1.6.1 (2017-10-13) #
' # Version 1.6.2 (2017-10-18) #
' # #
' ########################################################

Expand Down
4 changes: 2 additions & 2 deletions libbash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Copyright (c) 2017 Jean Prunneaux #
# Website: https://github.com/pruje/libbash.sh #
# #
# Version 1.6.1 (2017-10-13) #
# Version 1.6.2 (2017-10-18) #
# #
########################################################

Expand Down Expand Up @@ -96,7 +96,7 @@
####################

# libbash current version
lb_version=1.6.1
lb_version=1.6.2

# default labels
lb_default_result_ok_label="... Done!"
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 Jean Prunneaux #
# Website: https://github.com/pruje/libbash.sh #
# #
# Version 1.6.1 (2017-10-13) #
# Version 1.6.2 (2017-10-18) #
# #
########################################################

Expand Down

0 comments on commit 3ceb602

Please sign in to comment.