From ccb3922202b97f6726a1d32b66d73060ae0efaf8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 7 Aug 2024 11:15:00 +0100 Subject: [PATCH] Fix package.sh gtar & darwin flags Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- scripts/package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package.sh b/scripts/package.sh index 312ecfb42a..6a8bf2b9bd 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -24,8 +24,8 @@ rm element-$version/config.json || true $(dirname $0)/normalize-version.sh ${version} > element-$version/version # GNU/BSD compatibility workaround -tar_perms=(--owner=0 --group=0) && [ "$(uname)" == "Darwin" ] && sedi=(--uid=0 --gid=0) -gtar "${tar_perms[@]}" -chvzf dist/element-$version.tar.gz element-$version +tar_perms=(--owner=0 --group=0) && [ "$(uname)" == "Darwin" ] && tar_perms=(--uid=0 --gid=0) +tar "${tar_perms[@]}" -chvzf dist/element-$version.tar.gz element-$version rm -r element-$version echo