There's an apostrophe after your end, that would be a syntax error if it's really there.. perhaps that's not really there but you know.. If we're to look for mistakes in what you posted, that's it.
You could upload your files for others to inspect:
cd; tar -caf w.tgz workspace; curl -T w.tgz https://transfer.sh; rm w.tgz; cd $OLDPWD
Which others can look at with:
curl -O YOURLINK
tar -xf w.tgz