Update management scripts
This commit is contained in:
parent
660f555d6e
commit
2c719895e1
2 changed files with 9 additions and 12 deletions
19
install.sh
19
install.sh
|
@ -6,7 +6,7 @@ if [ ! -f "$HOME/.config/.jstm_dotfiles" ]; then
|
||||||
./uninstall.sh &> /dev/null
|
./uninstall.sh &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# useful function
|
# utility function
|
||||||
function link() {
|
function link() {
|
||||||
if [ -a "${HOME}/${2}" ]; then
|
if [ -a "${HOME}/${2}" ]; then
|
||||||
[[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists."
|
[[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists."
|
||||||
|
@ -17,20 +17,17 @@ function link() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# update/clone repositories
|
# update/clone repositories
|
||||||
if [ ! -d "dracula-mc" ]; then
|
[[ ! -d "dracula-mc" ]] && git clone "https://github.com/dracula/midnight-commander.git" dracula-mc
|
||||||
git clone "https://github.com/dracula/midnight-commander.git" dracula-mc
|
(
|
||||||
else
|
|
||||||
cd dracula-mc
|
cd dracula-mc
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
)
|
||||||
fi
|
|
||||||
if [ ! -d "jstmbash" ]; then
|
[[ ! -d "jstmbash" ]] && git clone "https://git.staropensource.de/JeremyStarTM/jstmbash.git" jstmbash
|
||||||
git clone "https://git.staropensource.de/JeremyStarTM/jstmbash.git" jstmbash
|
(
|
||||||
else
|
|
||||||
cd jstmbash
|
cd jstmbash
|
||||||
git pull
|
git pull
|
||||||
cd ..
|
)
|
||||||
fi
|
|
||||||
|
|
||||||
# create directories
|
# create directories
|
||||||
mkdir -p "${HOME}/.config" "${HOME}/.local/share/mc/skins" "${HOME}/.local/bin"
|
mkdir -p "${HOME}/.config" "${HOME}/.local/share/mc/skins" "${HOME}/.local/bin"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# jeremystartm's dotfiles "installer"
|
# jeremystartm's dotfiles "installer"
|
||||||
|
|
||||||
# useful function
|
# utility function
|
||||||
function unlink() {
|
function unlink() {
|
||||||
if [ -a "${HOME}/${1}" ]; then
|
if [ -a "${HOME}/${1}" ]; then
|
||||||
echo ":: Unlinking ${1}"
|
echo ":: Unlinking ${1}"
|
||||||
|
|
Loading…
Reference in a new issue