summarylogtreecommitdiffstats
path: root/copier.sh
diff options
context:
space:
mode:
Diffstat (limited to 'copier.sh')
-rwxr-xr-xcopier.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/copier.sh b/copier.sh
index a23eb269f165..d925da7c05c6 100755
--- a/copier.sh
+++ b/copier.sh
@@ -11,7 +11,7 @@ if [ ! -r filelist ]; then
fi
read -p "Enter the path to the TFTD data files: " _tftdpath
-if [ ! -d $_tftdpath ]; then
+if [ ! -d "$_tftdpath" ]; then
echo "ERROR: No such directory"
exit 1
fi
@@ -22,15 +22,15 @@ for file in $(cat filelist); do
# Handle files with identical names but different content
case "$file" in
LOFTEMPS.DAT|SCANG.DAT)
- if ! find $_tftdpath -path "*TERRAIN/$file" -exec cp "{}" ./"ter-$file" \; &>/dev/null; then
+ if ! find "$_tftdpath" -path "*TERRAIN/$file" -exec cp "{}" ./"ter-$file" \; &>/dev/null; then
_fail $file
fi
- if ! find $_tftdpath -path "*GEODATA/$file" -exec cp "{}" ./"geo-$file" \; &>/dev/null; then
+ if ! find "$_tftdpath" -path "*GEODATA/$file" -exec cp "{}" ./"geo-$file" \; &>/dev/null; then
_fail $file
fi
;;
*)
- if ! find $_tftdpath -name "$file" -exec cp "{}" . \; &>/dev/null; then
+ if ! find "$_tftdpath" -name "$file" -exec cp "{}" . \; &>/dev/null; then
_fail $file
fi
;;