Skip to content

Commit

Permalink
refactor: code indents in install_submodules.sh and prepare.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaZotov committed Jul 31, 2023
1 parent d8330e9 commit 3ba5c4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
16 changes: 5 additions & 11 deletions scripts/install_submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This script is used to download sources of ostis-web-platform and submodules
and install them. The exact behavior is configured via run arguments.
Options:
update: Remove ostis-web-platform submodules sources and download them from scratch.
--update: Remove ostis-web-platform submodules sources and download them from scratch.
USAGE
exit 1
}
Expand Down Expand Up @@ -61,23 +61,17 @@ update=0
while [ "$1" != "" ];
do
case $1 in
"update" )
"--update" )
update=1
;;
"--help" )
usage
;;
"help" )
usage
;;
"-h" )
"--help" | "-h" )
usage
;;
* )
usage
;;
esac
shift
esac
shift 1
done

stage "Clone submodules"
Expand Down
6 changes: 3 additions & 3 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ prepare()
echo -en "$1\n"
}

if (( ${build_sc_machine} == 1 ));
if (( build_sc_machine == 1 ));
then
prepare "SC-machine"

Expand All @@ -69,15 +69,15 @@ then
fi


if (( ${build_sc_web} == 1 )); then
if (( build_sc_web == 1 )); then
prepare "SC-web"

"${SC_WEB_PATH}/scripts/install_deps_ubuntu.sh"

"${SC_WEB_PATH}/scripts/build_sc_web.sh"
fi

if (( ${build_kb} == 1 )); then
if (( build_kb == 1 )); then
stage "Build knowledge base"
"${PLATFORM_PATH}/scripts/build_kb.sh"
fi

0 comments on commit 3ba5c4b

Please sign in to comment.