Handle cd failure
This commit is contained in:
parent
8b6e5a94c4
commit
7563605feb
1 changed files with 8 additions and 2 deletions
10
install.sh
10
install.sh
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue