Skip to content

Commit

Permalink
only try and import *.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed May 10, 2016
1 parent 61d2993 commit 9a79edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emoncms-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fi


# Get latest backup filename
backup_filename=$((cd $backup_source_path && ls -t *tar.gz) | head -1)
backup_filename=$((cd $backup_source_path && ls -t *.tar.gz) | head -1)
if [[ -z "$backup_filename" ]] #if backup does not exist (empty filename string)
then
echo "Error: cannot find backup..stopping import"
Expand Down

0 comments on commit 9a79edf

Please sign in to comment.