summaryrefslogtreecommitdiffstats
path: root/src/dir.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-11 18:15:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-11 18:15:41 (EDT)
commitf79dea0f5e1b89488d73bfb0360e651b8d578e15 (patch)
tree682bacab015acd1175f57b7bcbc8b65e4cb02ba5 /src/dir.sh
parentd19eb991c6cf206dba7a9ecc0732c4ab5e7b4f85 (diff)
Consistently shift function arguments
Diffstat (limited to 'src/dir.sh')
-rw-r--r--src/dir.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dir.sh b/src/dir.sh
index bd0cb95..90a41a7 100644
--- a/src/dir.sh
+++ b/src/dir.sh
@@ -23,6 +23,7 @@
hash_name()
{
local name="${1}"
+ shift 1
local hash=
if [ "x${name}" != "x${name#lib?}" ]; then
@@ -40,6 +41,7 @@ hash_name()
dir_is_empty()
{
local dir="${1}"
+ shift 1
local ret=
local dirent=
@@ -64,6 +66,7 @@ dir_is_empty()
try_rmdir()
{
local dir="${1}"
+ shift 1
if ! dir_is_empty "${dir}"; then
return 1