Skip to content

Commit 34464e1

Browse files
authored
Fix output v-dump-database (hestiacp#4831)
* Remove duplicate echo * Mute output
1 parent 24bcf43 commit 34464e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/v-dump-database

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,12 @@ else
7979
fi
8080

8181
if [ "$output" = "file" ]; then
82-
# echo filename for use in the php
83-
echo "${user}_${database}_${TYPE}_${timestamp}.${extension}"
84-
8582
cp $dump $BACKUP/${user}_${database}_${TYPE}_${timestamp}.${extension}
86-
8783
# echo file location for use in the php
8884
echo "$BACKUP/${user}_${database}_${TYPE}_${timestamp}.${extension}"
8985

9086
# cleanup
91-
echo "rm $BACKUP/${user}_${database}_${TYPE}_${timestamp}.${extension}" | at now + 1 hour
87+
echo "rm $BACKUP/${user}_${database}_${TYPE}_${timestamp}.${extension}" | at now + 1 hour > /dev/null 2>&1
9288
else
9389
cat $dump
9490
fi

0 commit comments

Comments
 (0)