I am having trouble to run this code, Anyone have a thought
#! /bin/bash
while :
do
echo "Enter file name along with absolute path : "
read -r inputFile
echo "Enter path you would like to save copy of the file : "
read -r pathinput
path=$pathinput
if ((-f "$inputFile" ; -d "$pathinput" ))
then
cp -p $inputFile $path
break
else
echo "File does not exist. Try again."
fi
done
echo " Job Done"