[type/__package_opkg] Mark lock variables readonly

This commit is contained in:
Dennis Camera 2020-06-21 17:35:28 +02:00
parent e79b26a61f
commit 6aae58dea7
2 changed files with 4 additions and 4 deletions

View file

@ -23,9 +23,9 @@
# 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() (
set -o noclobber
until echo $$>"${LOCKFILE}"

View file

@ -47,9 +47,9 @@ then
fi
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() (
set -o noclobber
until echo $$>"${LOCKFILE}"