#!/bin/bash
+vexec() { echo "$@"; exec "$@"; }
+
cd ~/chromiumos || exit 1
+case " $* " in
+*" --remote "*)
+ export GIT_CONFIG=$PWD/.repo/manifests.git/config
+ vexec cbuildbot "$@"
+ ;;
+esac
+
# cache the sudo timestamp
sudo echo "" >/dev/null
trybot_archive
)
sudo rm -rf "${clean[@]}"
- sudo find "${d}"/sdks -mtime +3 -delete
+ if [[ -d ${d}/sdks ]] ; then
+ sudo find "${d}"/sdks -mtime +3 -delete
+ fi
popd >/dev/null
fi
set -- -p "${p_flag}" "$@"
fi
-vexec() { echo "$@"; exec "$@"; }
vexec cbuildbot --buildroot=${d} "$@"