aboutsummaryrefslogtreecommitdiff
path: root/scripts/create-mtz
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-07-25 11:42:34 +0200
committerThomas White <taw@physics.org>2017-07-25 11:42:34 +0200
commit169edfb7076118f12b7054ef9a651623aa2d8408 (patch)
tree5ebc6283dc3f35b8b6b152c6dc86f011af01b32d /scripts/create-mtz
parentf676350163df68182e9defba79e99e6e92059d88 (diff)
create-mtz: Tidy up create-mtz.temp.hkl file
Diffstat (limited to 'scripts/create-mtz')
-rwxr-xr-xscripts/create-mtz10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/create-mtz b/scripts/create-mtz
index 556a87e7..62d94405 100755
--- a/scripts/create-mtz
+++ b/scripts/create-mtz
@@ -8,20 +8,17 @@ OUTFILE=`echo $1 | sed -e 's/\.hkl$/.mtz/'`
echo " Input: $1"
echo "Output: $OUTFILE"
-if [ -e create-mtz.temp.hkl -o -e $OUTFILE ]; then
- echo " I'm about to write to the following files, but one or more"
- echo " of them already exist:"
+if [ -e $OUTFILE ]; then
+ echo " The output file already exists:"
echo " " $OUTFILE
- echo " create-mtz.temp.hkl"
echo " To confirm that you want to continue, which will DESTROY the"
- echo " current contents of these files, type 'y' and press enter."
+ echo " current contents of this file, type 'y' and press enter."
read conf
if [ $conf != y ]; then
echo "Not confirmed."
exit 1
else
echo "Proceeding"
- rm -f create-mtz.temp.hkl
fi
fi
@@ -44,4 +41,5 @@ EOF
if [ $? -ne 0 ]; then echo "Failed."; exit; fi
+rm -f create-mtz.temp.hkl
echo "Done."