Update fetch.sh

This commit is contained in:
Ward Nakchbandi (CosmicFusion) 2024-08-07 22:32:29 +02:00
parent 4860b64bbf
commit 348d1f81f8

View File

@ -32,7 +32,7 @@ do
then then
if [[ $BIN_VERSION == $TARGET_VERSION ]] if [[ $BIN_VERSION == $TARGET_VERSION ]]
then then
cp -vf ./*.deb ./output/ mv -vf ./*.deb ./output/
else else
for i in ./*.deb for i in ./*.deb
do do
@ -40,7 +40,7 @@ do
dpkg-deb -R $i $i-tmp dpkg-deb -R $i $i-tmp
sed -i "s#$BIN_VERSION#$TARGET_VERSION#g" $i-tmp/DEBIAN/control sed -i "s#$BIN_VERSION#$TARGET_VERSION#g" $i-tmp/DEBIAN/control
dpkg-deb -b $i-tmp $i-fixed.deb dpkg-deb -b $i-tmp $i-fixed.deb
cp -vf ./*-fixed.deb ./output/ mv -vf ./*-fixed.deb ./output/
done done
fi fi
else else