added careful error checking to rev control
[feisty_meow.git] / scripts / rev_control / report_new.sh
index 224b1dfb703ee4052898f0859d0e310df42b4800..4da1a4a0025e0b73af59abd18e41bccee0cb404f 100644 (file)
@@ -5,17 +5,21 @@
 # a directory as a parameter, but will default to the current directory.
 # all the directories under the passed directory will be examined.
 
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
+
+##############
+
 dir="$1"; shift
 if [ -z "$dir" ]; then
   dir=.
 fi
 
-source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
-source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
-
 pushd "$dir" &>/dev/null
+test_or_die "changing directory to: $dir"
 tempfile=$(generate_rev_ctrl_filelist)
 popd &>/dev/null
 
 perform_revctrl_action_on_file "$tempfile" do_report_new
+test_or_die "running revision control report"