wip
This commit is contained in:
parent
e5985453b0
commit
24b7a2d137
1 changed files with 3 additions and 1 deletions
4
unbox.sh
4
unbox.sh
|
@ -8,6 +8,7 @@ function unbox_outer_stage(){
|
||||||
|
|
||||||
apt install git util-linux
|
apt install git util-linux
|
||||||
|
|
||||||
|
touch .repo_cache
|
||||||
select chosen_repo in other $(cat .repo_cache | sort | uniq); do
|
select chosen_repo in other $(cat .repo_cache | sort | uniq); do
|
||||||
if [ "${chosen_repo}" = "other" ]; then
|
if [ "${chosen_repo}" = "other" ]; then
|
||||||
echo -n "git repository url: "
|
echo -n "git repository url: "
|
||||||
|
@ -15,13 +16,14 @@ function unbox_outer_stage(){
|
||||||
else
|
else
|
||||||
REMOTE=$chosen_repo
|
REMOTE=$chosen_repo
|
||||||
fi
|
fi
|
||||||
|
echo $REMOTE
|
||||||
|
echo $REMOTE >> .repo_cache
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -e repo ]; then
|
if [ -e repo ]; then
|
||||||
(cd repo; git pull)
|
(cd repo; git pull)
|
||||||
else
|
else
|
||||||
echo $REMOTE >> .repo_cache
|
|
||||||
git clone "$REMOTE" repo
|
git clone "$REMOTE" repo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue