mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Refactor: Kavita + Updated tools.func (no-same-owner) (#8594)
This commit is contained in:
		@@ -1141,7 +1141,7 @@ function fetch_and_deploy_gh_release() {
 | 
			
		||||
      rm -rf "${target:?}/"*
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    tar -xzf "$tmpdir/$filename" -C "$tmpdir" || {
 | 
			
		||||
  tar --no-same-owner -xzf "$tmpdir/$filename" -C "$tmpdir" || {
 | 
			
		||||
      msg_error "Failed to extract tarball"
 | 
			
		||||
      rm -rf "$tmpdir"
 | 
			
		||||
      return 1
 | 
			
		||||
@@ -1263,7 +1263,7 @@ function fetch_and_deploy_gh_release() {
 | 
			
		||||
        return 1
 | 
			
		||||
      }
 | 
			
		||||
    elif [[ "$filename" == *.tar.* || "$filename" == *.tgz ]]; then
 | 
			
		||||
      tar -xf "$tmpdir/$filename" -C "$unpack_tmp" || {
 | 
			
		||||
      tar --no-same-owner -xf "$tmpdir/$filename" -C "$unpack_tmp" || {
 | 
			
		||||
        msg_error "Failed to extract TAR archive"
 | 
			
		||||
        rm -rf "$tmpdir" "$unpack_tmp"
 | 
			
		||||
        return 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user