Skip to content

Commit

Permalink
PMM-12899 fix the regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Apr 3, 2024
1 parent 36869b7 commit bf640ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/local/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,15 @@ init() {
if [ -d tmp ]; then
echo "Removing stale files and directories..."
if [ -d "tmp/pmm-server" ]; then
tmp_files=$(find tmp/pmm-server | grep -v "RPMS")
tmp_files=$(find tmp/pmm-server | grep -v "RPMS" | grep -Ev "^tmp/pmm-server$")
tmp_files=($tmp_files)
for f in "${tmp_files[@]}"; do
rm -rf "$f"
done
fi
if [ -d "tmp/source/pmm" ]; then
rm -rf tmp/source/pmm
fi
fi
if [ -f "$LOG_FILE" ]; then
echo "Removing the log file..."
Expand Down

0 comments on commit bf640ca

Please sign in to comment.