feat(start script): ensure the user runs the command from the root folder
This commit is contained in:
parent
c5b4a95abb
commit
3da4c353cd
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ while [ -n "$1" ]; do # while loop starts
|
|||
shift
|
||||
done
|
||||
|
||||
# Ensure BASH_SOURCE is ./scripts/start.sh
|
||||
if [[ "${BASH_SOURCE[0]}" != "./scripts/start.sh" ]]; then
|
||||
echo "Please make sure this script is executed from runtipi/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check we are on linux
|
||||
if [[ "$(uname)" != "Linux" ]]; then
|
||||
echo "Tipi only works on Linux"
|
||||
|
|
Loading…
Add table
Reference in a new issue