#! /bin/bash SRC_DIR=chromium-src VERSION=$1 if [[ -z $VERSION ]]; then echo "Version is missing" exit 1 fi rm -rf $SRC_DIR && mkdir -p $SRC_DIR pushd $SRC_DIR cat >.gclient < chromium-$VERSION-clean.tar.xz echo "Finished!"