mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 04:16:11 +00:00
ensure dotdrop exit code is returned
This commit is contained in:
@@ -22,11 +22,14 @@ cfg="${cur}/config.yaml"
|
|||||||
sub="dotdrop"
|
sub="dotdrop"
|
||||||
|
|
||||||
# pivot
|
# pivot
|
||||||
cd "${cur}" || { echo "Directory \"${cur}\" doesn't exist, aborting." && exit; }
|
cd "${cur}" || { echo "Directory \"${cur}\" doesn't exist, aborting." && exit 1; }
|
||||||
# init/update the submodule
|
# init/update the submodule
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
git submodule update --remote dotdrop
|
git submodule update --remote dotdrop
|
||||||
# launch dotdrop
|
# launch dotdrop
|
||||||
PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop "${args[@]}"
|
PYTHONPATH=dotdrop python3 -m dotdrop.dotdrop "${args[@]}"
|
||||||
|
ret="$?"
|
||||||
# pivot back
|
# pivot back
|
||||||
cd "${opwd}" || { echo "Directory \"${opwd}\" doesn't exist, aborting." && exit; }
|
cd "${opwd}" || { echo "Directory \"${opwd}\" doesn't exist, aborting." && exit 1; }
|
||||||
|
# exit with dotdrop exit code
|
||||||
|
exit ${ret}
|
||||||
|
|||||||
Reference in New Issue
Block a user