wip
This commit is contained in:
parent
d919302209
commit
4e2f4f96e6
1 changed files with 11 additions and 2 deletions
13
unbox.sh
13
unbox.sh
|
@ -8,11 +8,20 @@ function unbox_outer_stage(){
|
|||
|
||||
apt install git util-linux
|
||||
|
||||
select chosen_repo in other $(cat .repo_cache | sort | uniq); do
|
||||
if [ "${chosen_repo}" = "other" ]; then
|
||||
echo -n "git repository url"
|
||||
read REMOTE
|
||||
else
|
||||
REMOTE=$chosen_repo
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -e repo ]; then
|
||||
(cd repo; git pull)
|
||||
else
|
||||
git clone https://github.com/jed1/laptop-scripts.git repo
|
||||
#git clone https://github.com/busti/pt-surface.git repo
|
||||
echo $REMOTE >> .repo_cache
|
||||
git clone "$REMOTE" repo
|
||||
fi
|
||||
|
||||
if [[ ! -e repo/entry.sh ]]; then
|
||||
|
|
Loading…
Reference in a new issue