Skip to content

Commit

Permalink
Rename .ddeb extension to .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
maqeel75 committed Mar 5, 2024
1 parent 7ecd10a commit 3d84610
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions percona-packaging/scripts/pg_stat_monitor_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,19 @@ build_source_deb(){
cp *.orig.tar.gz $CURDIR/source_deb
}

change_ddeb_package_to_deb(){

directory=$1

for file in "$directory"/*.ddeb; do
if [ -e "$file" ]; then
# Change extension to .deb
mv "$file" "${file%.ddeb}.deb"
echo "Changed extension of $file to ${file%.ddeb}.deb"
fi
done
}

build_deb(){
if [ $DEB = 0 ]
then
Expand Down Expand Up @@ -473,6 +486,7 @@ build_deb(){
mkdir -p $WORKDIR/deb
cp $WORKDIR/*.*deb $WORKDIR/deb
cp $WORKDIR/*.*deb $CURDIR/deb
change_ddeb_package_to_deb "$CURDIR/deb"
}

CURDIR=$(pwd)
Expand Down

0 comments on commit 3d84610

Please sign in to comment.