Skip to content

Commit

Permalink
list the files in project_dir
Browse files Browse the repository at this point in the history
Signed-off-by: muthuja <[email protected]>
  • Loading branch information
muthuja committed Feb 25, 2025
1 parent 6b58a7b commit 5dc2ff9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/omnibus/fetchers/net_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,12 @@ def extract
if downloaded_file.end_with?(*TAR_EXTENSIONS) && source[:extract] != :seven_zip
returns = [0]
returns << 1 if source[:extract] == :lax_tar
#list the files in project_dir
shellout!("ls -lR #{project_dir}", returns: [0])
#change the permissions if not set
shellout!("find #{project_dir} -type f -not -perm /111 -exec chmod 755 {} \\;", returns: [0])

shellout!("tar #{compression_switch}xf #{downloaded_file} --force-local -C#{project_dir}", returns: returns)
shellout!("tar #{compression_switch}-xf #{downloaded_file} --force-local -C#{project_dir} -v", returns: returns)
elsif downloaded_file.end_with?(*COMPRESSED_TAR_EXTENSIONS)
Dir.mktmpdir do |temp_dir|
log.debug(log_key) { "Temporarily extracting `#{safe_downloaded_file}' to `#{temp_dir}'" }
Expand Down

0 comments on commit 5dc2ff9

Please sign in to comment.