Skip to content

Commit

Permalink
using waitgroup instead of sleep
Browse files Browse the repository at this point in the history
trial #2
  • Loading branch information
AzfaarQureshi committed Jan 8, 2021
1 parent 3a9ab06 commit 9ceda0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/buildscripts/packaging/fpm/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ install_pkg() {
local pkg_base=$( basename "$pkg_path" )

echo "Installing $pkg_base ..."
echo "$(ls -l $pkg_path)"
docker cp "$pkg_path" $image_name:/tmp/$pkg_base
sleep 5
docker cp "$pkg_path" $image_name:/tmp/$pkg_base &
wait $!
if [[ "${pkg_base##*.}" = "deb" ]]; then
$docker_exec dpkg -i /tmp/$pkg_base
else
Expand Down

0 comments on commit 9ceda0c

Please sign in to comment.