mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-31 00:39:57 +00:00
arm-autonomy/xenguest-manager: Fixed subshell false positive
Removed private check from check_size and is_integer to prevent false positive error on execution in a subshell Issue-Id: SCM-1623 Signed-off-by: Nathan Dunne <Nathan.Dunne@arm.com> Change-Id: I57564bf610e21244c963a77c0669da5d4526eeff Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
committed by
Ross Burton
parent
22948879f8
commit
e18ee052f7
@@ -70,8 +70,6 @@ function check_private()
|
|||||||
|
|
||||||
is_integer() {
|
is_integer() {
|
||||||
|
|
||||||
check_private
|
|
||||||
|
|
||||||
if ! [[ "${1}" =~ ^[0-9]+$ ]]; then
|
if ! [[ "${1}" =~ ^[0-9]+$ ]]; then
|
||||||
>&2 echo "error: invalid number '${1}'"; exit 1
|
>&2 echo "error: invalid number '${1}'"; exit 1
|
||||||
fi
|
fi
|
||||||
@@ -80,8 +78,6 @@ is_integer() {
|
|||||||
# check size and convert it to MB, e.g '1[G]' => '1000M'
|
# check size and convert it to MB, e.g '1[G]' => '1000M'
|
||||||
check_size() {
|
check_size() {
|
||||||
|
|
||||||
check_private
|
|
||||||
|
|
||||||
local disksize="${1}"
|
local disksize="${1}"
|
||||||
|
|
||||||
[ -n "${disksize}" ] || disksize="invalid"
|
[ -n "${disksize}" ] || disksize="invalid"
|
||||||
|
|||||||
Reference in New Issue
Block a user