Skip to content

Commit

Permalink
try just using tar for ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
phyzical committed Oct 2, 2024
1 parent a59a717 commit b2eb924
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ rsync -av --progress src/docker.labelInjector/ "$tmpdir" --exclude .git --exclud

cd "$tmpdir" || exit

gtar --owner=0 --group=0 -cJf "$filename" .
tar_command="tar"
if [[ "$(uname)" == "Darwin" ]]; then
tar_command="gtar"
fi
$tar_command --owner=0 --group=0 -cJf "$filename" .

cd - || exit

Expand All @@ -29,4 +33,4 @@ sed -i '' 's/<!ENTITY md5 ".*">/<!ENTITY md5 "'"$md5hash"'">/' docker.labelInjec
echo "MD5: $(md5sum "$filename")"
echo "once pushed install via https://raw.githubusercontent.com/phyzical/docker.labelInjector/main/docker.labelInjector.plg"

gtar -tvf "$filename"
$tar_command -tvf "$filename"

0 comments on commit b2eb924

Please sign in to comment.