From 2d8882d057f8f71751856cd0ec59f52f50170dbd Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 18:41:26 -0400 Subject: src/block.sh: Shift func args, update copyright --- 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= -- cgit v0.9.1