aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%/.bash_utils/file.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 02:18:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-04-16 02:18:51 +0300
commit4124f35044b810719c6aae8d3ca148f927482e46 (patch)
tree8f1289edce2a8da152e6bd1518745a28dbbeff6f /%HOME%/.bash_utils/file.sh
parentsums_list_paths: factor out sums_unescape_path (diff)
downloadlinux-home-4124f35044b810719c6aae8d3ca148f927482e46.tar.gz
linux-home-4124f35044b810719c6aae8d3ca148f927482e46.zip
bugfix & code style
Diffstat (limited to '')
-rw-r--r--%HOME%/.bash_utils/file.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/%HOME%/.bash_utils/file.sh b/%HOME%/.bash_utils/file.sh
index 6034713..6df20d0 100644
--- a/%HOME%/.bash_utils/file.sh
+++ b/%HOME%/.bash_utils/file.sh
@@ -17,12 +17,12 @@ swap_files() (
local path2="$2"
if [ ! -r "$path1" ] || [ ! -w "$path1" ]; then
- echo "${FUNCNAME[0]}: must be a regular file: $path1" >&2
+ echo "${FUNCNAME[0]}: must be readable and writable: $path1" >&2
return 1
fi
if [ ! -r "$path2" ] || [ ! -w "$path2" ]; then
- echo "${FUNCNAME[0]}: must be a regular file: $path2" >&2
+ echo "${FUNCNAME[0]}: must be readable and writable: $path2" >&2
return 1
fi