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
|
||||
fi
|
||||
|
||||
# useful function
|
||||
# utility function
|
||||
function link() {
|
||||
if [ -a "${HOME}/${2}" ]; then
|
||||
[[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists."
|
||||
|
@ -17,20 +17,17 @@ function link() {
|
|||
}
|
||||
|
||||
# update/clone repositories
|
||||
if [ ! -d "dracula-mc" ]; then
|
||||
git clone "https://github.com/dracula/midnight-commander.git" dracula-mc
|
||||
else
|
||||
[[ ! -d "dracula-mc" ]] && git clone "https://github.com/dracula/midnight-commander.git" dracula-mc
|
||||
(
|
||||
cd dracula-mc
|
||||
git pull
|
||||
cd ..
|
||||
fi
|
||||
if [ ! -d "jstmbash" ]; then
|
||||
git clone "https://git.staropensource.de/JeremyStarTM/jstmbash.git" jstmbash
|
||||
else
|
||||
)
|
||||
|
||||
[[ ! -d "jstmbash" ]] && git clone "https://git.staropensource.de/JeremyStarTM/jstmbash.git" jstmbash
|
||||
(
|
||||
cd jstmbash
|
||||
git pull
|
||||
cd ..
|
||||
fi
|
||||
)
|
||||
|
||||
# create directories
|
||||
mkdir -p "${HOME}/.config" "${HOME}/.local/share/mc/skins" "${HOME}/.local/bin"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# jeremystartm's dotfiles "installer"
|
||||
|
||||
# useful function
|
||||
# utility function
|
||||
function unlink() {
|
||||
if [ -a "${HOME}/${1}" ]; then
|
||||
echo ":: Unlinking ${1}"
|
||||
|
|
Loading…
Reference in a new issue