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