Skip to content

Commit

Permalink
Fix test after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
whitehawk committed Jul 1, 2024
1 parent 6a7e453 commit ecb4eaf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/example_plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ restore_data() {
echo "restore_data $1 $2" >> /tmp/plugin_out.txt
filename=`basename "$2"`
timestamp_dir=`basename $(dirname "$2")`
if [ -e "/tmp/GPBACKUP_PLUGIN_FAIL" ] ; then
sleep 3
echo 'error' >&2
fi
timestamp_day_dir=${timestamp_dir%??????}
if [ -e "/tmp/GPBACKUP_PLUGIN_LOG_TO_STDERR" ] ; then
echo 'Some plugin warning' >&2
elif [ -e "/tmp/GPBACKUP_PLUGIN_FAIL" ] ; then
pkill "restore-agent"
exit 1
elif [ -e "/tmp/GPBACKUP_PLUGIN_DIE" ] ; then
exit 1
fi
Expand Down

0 comments on commit ecb4eaf

Please sign in to comment.