Waiting outside the function didn't affect the forks inside the function

master
Ismael Barros² 2014-11-14 19:16:08 +01:00
parent befdda91a6
commit a62ae5aff1
1 changed files with 5 additions and 3 deletions

View File

@ -85,11 +85,13 @@ link_overlay_setup()
esac
fi
done
wait
}
spawn "$(readlink -f "$1")" "$(readlink -fm "$2")"
wait
local from="$(readlink -f "$1")"
local to="$(readlink -fm "$2")"
spawn "$from" "$to"
}