Skip to content

Commit

Permalink
Fixed script bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardUL99 committed Feb 9, 2021
1 parent 6284032 commit 38c1071
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions install/simpleftp_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,19 @@ fi

echo -e "\n\t[Installation]\n"

echo "Checking if there are any existing simple-ftp JARS in $output_dir"
if [ "$files_downloaded" == "false" ]; then
echo "Checking if there are any existing simple-ftp JARS in $output_dir"

mapfile -t files < <(find . -name "simple-ftp*.jar")
mapfile -t files < <(find . -name "simple-ftp*.jar")

for f in "${files[@]}";
do
confirmExistingJarRemoval "$f"
done
for f in "${files[@]}";
do
confirmExistingJarRemoval "$f"
done

if [ "${#files[@]}" -eq "0" ]; then
echo "No pre-existing simple-ftp JARs passencrypt_found"
if [ "${#files[@]}" -eq "0" ]; then
echo "No pre-existing simple-ftp JARs found"
fi
fi

if [ -n "$jar_file" ]; then
Expand Down

0 comments on commit 38c1071

Please sign in to comment.