diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 18:41:26 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 18:41:26 (EDT) |
commit | 2d8882d057f8f71751856cd0ec59f52f50170dbd (patch) | |
tree | d1d6bc71cd8bf547115dd45058e4dd93127f4996 /src | |
parent | bd15c23395b92446af40f7df76edefce51b4e999 (diff) |
src/block.sh: Shift func args, update copyright
Diffstat (limited to 'src')
-rw-r--r-- | src/block.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh index bb46e25..b1cd319 100644 --- a/src/block.sh +++ b/src/block.sh @@ -1,6 +1,6 @@ # Functions for mounting and unmounting block devices # -# Copyright (C) 2015 Patrick "P. J." McDermott +# Copyright (C) 2015 Patrick McDermott # # This file is part of the ProteanOS Development Kit. # @@ -21,6 +21,7 @@ is_block() { local dev="${1}" + shift 1 [ -b "${dev}" ] return ${?} @@ -29,6 +30,7 @@ is_block() check_block() { local dev="${1}" + shift 1 if ! [ -b "${dev}" ]; then error "$(get_msg 'block_device_invalid')" "${dev}" @@ -41,6 +43,7 @@ check_block() block_mount() { local dev="${1}" + shift 1 local dir= if ! check_block "${dev}"; then @@ -67,6 +70,7 @@ block_mount() block_umount() { local dir="${1}" + shift 1 local i= local timed_out= |