No script fornecido por você, as variáveis não são citadas .
Você deve atualizar seu script e citar as variáveis com ""
Por exemplo:
fullpath="/home/abc/"$folder"/"$filename
Deve ser:
fullpath="/home/abc/$folder/$filename"
% bl0ck_qu0te%
Você pode encontrar abaixo o feedback completo do site de verificação de shell em seu script
Line 5:
read folder
^-- SC2162: read without -r will mangle backslashes.
Line 6:
echo "Folder name is "$folder
^-- SC2086: Double quote to prevent globbing and word splitting.
Line 8:
read filename
^-- SC2162: read without -r will mangle backslashes.
Line 10:
echo "File name is "$filename
^-- SC2086: Double quote to prevent globbing and word splitting.
Line 11:
fullpath="/home/abc/"$folder"/"$filename
^-- SC2027: The surrounding quotes actually unquote this. Remove or escape them.
Line 13:
echo "Full path is "$fullpath
^-- SC2086: Double quote to prevent globbing and word splitting.
Line 17:
echo "Command to be executed is "$fixcommand
^-- SC2086: Double quote to prevent globbing and word splitting.
Line 19:
echo -n "Is that correct (y/n)? "
^-- SC2039: In POSIX sh, echo flags are undefined.
Line 20:
read answer
^-- SC2162: read without -r will mangle backslashes.