Fix shellcheck issues
This commit is contained in:
		
					parent
					
						
							
								d034fe9369
							
						
					
				
			
			
				commit
				
					
						890c73f6bd
					
				
			
		
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -24,18 +24,18 @@ case "$type" in
 | 
				
			||||||
        if [ -f "/var/cache/apt/pkgcache.bin" ]; then
 | 
					        if [ -f "/var/cache/apt/pkgcache.bin" ]; then
 | 
				
			||||||
            echo $(($(date +"%s")-$(stat --format '%Y' /var/cache/apt/pkgcache.bin)))
 | 
					            echo $(($(date +"%s")-$(stat --format '%Y' /var/cache/apt/pkgcache.bin)))
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            echo -1
 | 
					            echo -- -1
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    pacman)
 | 
					    pacman)
 | 
				
			||||||
        if [ -d "/var/lib/pacman/sync" ]; then
 | 
					        if [ -d "/var/lib/pacman/sync" ]; then
 | 
				
			||||||
            echo $(($(date +"%s")-$(stat --format '%Y' /var/lib/pacman/sync)))
 | 
					            echo $(($(date +"%s")-$(stat --format '%Y' /var/lib/pacman/sync)))
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            echo -1
 | 
					            echo -- -1
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    alpine)
 | 
					    alpine)
 | 
				
			||||||
        echo -1
 | 
					        echo -- -1
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
    *)  echo "Your specified type ($type) is currently not supported." >&2
 | 
					    *)  echo "Your specified type ($type) is currently not supported." >&2
 | 
				
			||||||
        echo "Please contribute an implementation for it if you can." >&2
 | 
					        echo "Please contribute an implementation for it if you can." >&2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,7 +38,7 @@ destination="/$__object_id"
 | 
				
			||||||
venvparams="$(cat "$__object/parameter/venvparams")"
 | 
					venvparams="$(cat "$__object/parameter/venvparams")"
 | 
				
			||||||
pyvenvparam="$__object/parameter/pyvenv"
 | 
					pyvenvparam="$__object/parameter/pyvenv"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os=$(cat $__global/explorer/os)
 | 
					os=$(cat "$__global/explorer/os")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f "$pyvenvparam" ]
 | 
					if [ -f "$pyvenvparam" ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue