#!/usr/bin/env php Installing/Updating $name\n"; $installDir = VENDOR_PATH.'/'.$name; if (!is_dir($installDir)) { system(sprintf('git clone %s %s', $url, $installDir)); } system(sprintf('cd %s && git fetch origin && git reset --hard %s', $installDir, $rev)); }