Skip to content

Commit

Permalink
cleanup upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zahornyak committed Sep 12, 2024
1 parent 3d3be5d commit f2543fb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

#rm -rf $GITHUB_WORKSPACE/dump
#echo "Dump removed"
ls -la

if [ -d $GITHUB_WORKSPACE/dump ]; then
rm -rf $GITHUB_WORKSPACE/dump
echo "Dump removed"
else
echo "Dump does not exist"
fi

if [ "$2" = "true" ]; then
if [ -f $GITHUB_WORKSPACE/dump.tar.gz ]; then
rm $GITHUB_WORKSPACE/dump.tar.gz
if [ $? -eq 0 ]; then
echo "Compressed dump removed"
fi
fi
echo "Compressed dump removed"
else
echo "Compressed dump does not exist"
fi

0 comments on commit f2543fb

Please sign in to comment.