Handle cd failure

This commit is contained in:
JeremyStar™ 2024-06-02 21:10:32 +02:00
parent 8b6e5a94c4
commit 7563605feb
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -19,13 +19,19 @@ function link() {
# update/clone repositories
[[ ! -d "dracula-mc" ]] && git clone "https://github.com/dracula/midnight-commander.git" dracula-mc
(
cd dracula-mc
cd dracula-mc || (
echo ":: Error: Can't cd into dracula-mc"
exit 1
)
git pull
)
[[ ! -d "jstmbash" ]] && git clone "https://git.staropensource.de/JeremyStarTM/jstmbash.git" jstmbash
(
cd jstmbash
cd jstmbash || (
echo ":: Error: Can't cd into jstmbash"
exit 1
)
git pull
)