Help with Script to Move Directories

Hi
I am after a simple script to move folders/files from one directory into another directory on the same server. I want to run a cron so this can run at midnight.
Issue is there will not always be data in the source folder.
This script works fine but it errors if nothing exists in the source directory


#!/bin/sh
#Move Archive#


SOURCE_DIR=/raid/ERIC/ARCHIVING_ONLY/
BACKUP_DIR=/raid/ARCHIVE/TO_ARCHIVE/


cd $SOURCE_DIR
mv -f * $BACKUP_DIR/
cd $TMP_DIR


Can this be added to script to ignore if data is not there
thanks
Treds
$ sh -c 'if [ "`echo *`" = "*" ]
then
 echo true
fi'
$ mkdir emptyd
$ sh -c 'cd emptyd;if [ "`echo *`" = "*" ]
then
 echo true
fi'
true
$
thanks so would i run it like this?


#!/bin/sh
#Move Archive#


SOURCE_DIR=/raid/ERIC/ARCHIVING_ONLY/
BACKUP_DIR=/raid/ARCHIVE/TO_ARCHIVE/


cd $SOURCE_DIR
mv -f * $BACKUP_DIR/
cd $TMP_DIR

$ sh -c 'if [ "`echo *`" = "*" ]
then
 echo true
fi'
$ mkdir emptyd
$ sh -c 'cd emptyd;if [ "`echo *`" = "*" ]
then
 echo true
fi'
true
$

No, my bit of shell scripting was intended to be tutorial. This is an example of how to test a directory for empty or not empty state, where I make a new directory so it is implicitly empty. I ran the bits in sh -c '...' as my login shell is ksh.

You would cd to the source, test it, and if not empty, mv.