Detect arch and name firejail*.deb correctly

parent 09620dde
......@@ -44,7 +44,16 @@ find $INSTALL_DIR -type d | xargs chmod 755
cd $CODE_DIR
fakeroot dpkg-deb --build debian
lintian --no-tag-display-limit debian.deb
mv debian.deb ../firejail_$2_1_amd64.deb
echo "if building a 32bit package, rename the deb file manually"
arch=$( getconf LONG_BIT )
if [ $arch = 64 ]
then
mv debian.deb ../firejail_$2_1_amd64.deb
elif [ $arch = 32 ]
then
mv debian.deb ../firejail_$2_1_i386.deb
# Fallback to 64-bit package.
else
mv debian.deb ../firejail_$2_1_amd64.deb
fi
cd ..
rm -fr $CODE_DIR
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment