Update dotfiles/.local/bin/install-dotfiles
This commit is contained in:
parent
0ec9c4f480
commit
d6b1fa9978
1 changed files with 5 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
if [ -f '/etc/qubes-release' ]; then
|
if [ -f '/etc/qubes-release' ]; then
|
||||||
# Qubes dom0
|
# Qubes dom0
|
||||||
qvm-create --label red --template debian-11-dvm download-vm &> /dev/null || EXIT_CODE=$?
|
qvm-create --label red --template debian-11 provision &> /dev/null || EXIT_CODE=$?
|
||||||
qvm-run download-vm 'curl -sSL https://gitlab.com/megabyte-labs/dotfiles/-/archive/master/dotfiles-master.tar.gz > dotfiles.tar.gz'
|
qvm-run --pass-io provision 'curl -sSL https://gitlab.com/megabyte-labs/dotfiles/-/archive/master/dotfiles-master.tar.gz > dotfiles.tar.gz'
|
||||||
qvm-run --pass-io download-vm "cat dotfiles.tar.gz" > "$HOME/dotfiles.tar.gz"
|
qvm-run --pass-io provision "cat dotfiles.tar.gz" > "$HOME/dotfiles.tar.gz"
|
||||||
tar -xzf "$HOME/dotfiles.tar.gz" -C "$HOME"
|
tar -xzf "$HOME/dotfiles.tar.gz" -C "$HOME"
|
||||||
rm -f "$HOME/dotfiles.tar.gz"
|
rm -f "$HOME/dotfiles.tar.gz"
|
||||||
sudo rm -rf /usr/src/professor-dotfiles
|
sudo rm -rf /usr/src/professor-dotfiles
|
||||||
|
@ -12,9 +12,10 @@ if [ -f '/etc/qubes-release' ]; then
|
||||||
else
|
else
|
||||||
if [ -d /usr/src/professor-dotfiles/.git ]; then
|
if [ -d /usr/src/professor-dotfiles/.git ]; then
|
||||||
cd /usr/src/professor-dotfiles
|
cd /usr/src/professor-dotfiles
|
||||||
git pull origin master
|
sudo git pull origin master
|
||||||
cd ~/
|
cd ~/
|
||||||
else
|
else
|
||||||
|
sudo rm -rf /usr/src/professor-dotfiles
|
||||||
sudo git clone https://gitlab.com/megabyte-labs/dotfiles.git /usr/src/professor-dotfiles
|
sudo git clone https://gitlab.com/megabyte-labs/dotfiles.git /usr/src/professor-dotfiles
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue