[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
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
__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}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue