Skip to content

Commit

Permalink
Merge pull request #347 from codacy/fix/replace-pushd-with-cd
Browse files Browse the repository at this point in the history
feature: Stop using pushd and popd for better compatibility
  • Loading branch information
machadoit authored Aug 18, 2021
2 parents 7794e3f + 92c1d1a commit e605dbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ download() {
local output_folder="$3"
local output_filename="$4"
local checksum_url="$5"
local original_folder="$(pwd)"

pushd "$output_folder"
cd "$output_folder"

download_file "$url"
checksum "$file_name" "$checksum_url"
mv "$file_name" "$output_filename"

popd
cd "$original_folder"
}

download_reporter() {
Expand Down

0 comments on commit e605dbc

Please sign in to comment.