[type/__package_opkg] Mark lock variables readonly
This commit is contained in:
parent
e79b26a61f
commit
6aae58dea7
2 changed files with 4 additions and 4 deletions
|
@ -23,9 +23,9 @@
|
||||||
# Retrieve the status of a package - parses opkg output
|
# Retrieve the status of a package - parses opkg output
|
||||||
#
|
#
|
||||||
|
|
||||||
__type_path=${__object%%${__object_id}*}
|
readonly __type_path=${__object%%${__object_id}*}
|
||||||
|
readonly LOCKFILE="${__type_path}/cdist_opkg.lock"
|
||||||
|
|
||||||
LOCKFILE="${__type_path}/cdist_opkg.lock"
|
|
||||||
_lock() (
|
_lock() (
|
||||||
set -o noclobber
|
set -o noclobber
|
||||||
until echo $$>"${LOCKFILE}"
|
until echo $$>"${LOCKFILE}"
|
||||||
|
|
|
@ -47,9 +47,9 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
__type_path=${__object%%${__object_id}*}
|
readonly __type_path=${__object%%${__object_id}*}
|
||||||
|
readonly LOCKFILE="${__type_path}/cdist_opkg.lock"
|
||||||
|
|
||||||
LOCKFILE="${__type_path}/cdist_opkg.lock"
|
|
||||||
_lock() (
|
_lock() (
|
||||||
set -o noclobber
|
set -o noclobber
|
||||||
until echo $$>"${LOCKFILE}"
|
until echo $$>"${LOCKFILE}"
|
||||||
|
|
Loading…
Reference in a new issue