fix(#2514): Fix tar.gz changes the uid/gid of cwd
Do not include "." in the tarball in order to avoid changing the current working directory when installing the tar.gz
@@ -53,7 +53,7 @@ cross_compile () {
cp ${location}/../LICENSE ${targetdir}/
cp ${location}/../NOTICE ${targetdir}/
- pushd . && cd ${targetdir} && tar -zcvf ../../${label}.tar.gz . && popd
+ pushd . && cd ${targetdir} && tar -zcvf ../../${label}.tar.gz $(ls -A) && popd
}
cross_compile ${basename}-${version}-linux-64bit linux amd64
