is `$$` a typo?

also, wouldn't it make sense to check return value of `symlink()` call?