if [ -n "$directories" ]; then
dest_dir="$directories/$dest_dir"
fi &&
-exec git remote add current "$HOME"/current/projects/"$dest_dir"
+{
+ git remote add current "$HOME"/current/projects/"$dest_dir" ||
+ exec git remote set-url current "$HOME"/current/projects/"$dest_dir"
+}
if [ -n "$directories" ]; then
dest_dir="$directories/$dest_dir"
fi &&
-git remote add web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" &&
+{
+ git remote add web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" ||
+ git remote set-url web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir"
+} &&
exec git push --set-upstream web master