3 Jan
2013
3 Jan
'13
3:15 p.m.
On 01/03/2013 03:11 PM, Mojca Miklavec wrote:
but that is my own syntax(?) error and I didn't yet figure out what exactly is wrong. The easiest solution is to comment out adding the symlinks, but it will be better to find the proper solution, so if anyone has a clue, please feel free to suggest the cure :)
create_symlink() { binary="$1" link="$2" if [ ! -f "$link" ]; then return do_cmd "create symlink" ln -s "$binary" "$link" # problematic line fi return 0 }
At a guess, the shell is complaining about do_cmd not returning anything. Perhaps this works? create_symlink() { binary="$1" link="$2" if [ ! -f "$link" ]; then do_cmd "create symlink" ln -s "$binary" "$link" return $? fi return 0 }