mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-12 21:40:41 +00:00
35 lines
505 B
Bash
35 lines
505 B
Bash
#!/bin/bash
|
|
|
|
box() {
|
|
MESSAGE="$2$1"
|
|
SEPERATOR="==${MESSAGE//?/=}=="
|
|
|
|
echo
|
|
echo "$SEPERATOR"
|
|
echo "| $MESSAGE |"
|
|
echo "$SEPERATOR"
|
|
echo
|
|
}
|
|
|
|
step() {
|
|
CONTINUE_MESSAGE="-> Press ENTER to continue or Ctrl+C to interrupt the script <-"
|
|
UPPER_SEPERATOR="${CONTINUE_MESSAGE//?/_}"
|
|
|
|
echo
|
|
echo "$UPPER_SEPERATOR"
|
|
|
|
box "$1" "Next step: "
|
|
|
|
echo "$CONTINUE_MESSAGE"
|
|
read -s
|
|
echo
|
|
}
|
|
|
|
install_latest_pipx() {
|
|
pip install --user --upgrade pipx
|
|
}
|
|
|
|
poetry_install_latest() {
|
|
cd "$SDIR/.."
|
|
poetry install
|
|
}
|