Hi I've been having trouble with this piece of code for about a day now and I still keep getting the same error which is this:
Here's the code behind it: https://pastebin.com/GpAwrcbj
for f in $(ls $repo); do for f_ghost in $(ls $repo".repo_files/ghost_repo/"); do
echo $f" "$f_ghost
if ("$($f)" == "$($f_ghost)")
then
I've been trying to figure out whether it's something to be with the way I'm comparing the two file names but even when trying to use the bash guide for operators it's gotten me nowhere. If anyone has any suggestions behind what could be causing this. (I've tried chmod to make sure everything has rw access for all users btw so I honestly have no idea why this is giving a perms error)