updated inst script for install-extra
This commit is contained in:
@@ -61,8 +61,6 @@ success() {
|
|||||||
if [[ $CHOICE == "y" || $CHOICE == "Y" ]]; then
|
if [[ $CHOICE == "y" || $CHOICE == "Y" ]]; then
|
||||||
save_desktop_entry $NAME $EXECUTABLE
|
save_desktop_entry $NAME $EXECUTABLE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_c() {
|
install_c() {
|
||||||
@@ -79,7 +77,7 @@ install_python() {
|
|||||||
# Get the current working directory and the virtual environment
|
# Get the current working directory and the virtual environment
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
ENV=$(pwd)/bin/activate
|
ENV=$(pwd)/bin/activate
|
||||||
COMMAND="python $CWD/$NAME.py"
|
COMMAND="python $CWD/src/$NAME.py"
|
||||||
|
|
||||||
# Create the virtual environment
|
# Create the virtual environment
|
||||||
python -m venv .
|
python -m venv .
|
||||||
@@ -218,7 +216,7 @@ check_theme() {
|
|||||||
install-extra() {
|
install-extra() {
|
||||||
if [ -f "install-extra" ]; then
|
if [ -f "install-extra" ]; then
|
||||||
echo "Running install-extra..."
|
echo "Running install-extra..."
|
||||||
sudo ./install-extra
|
./install-extra
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -246,6 +244,7 @@ check_args() {
|
|||||||
install_dependencies
|
install_dependencies
|
||||||
install "$PROJECT_NAME"
|
install "$PROJECT_NAME"
|
||||||
install-extra
|
install-extra
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# User argument provided
|
# User argument provided
|
||||||
@@ -271,6 +270,7 @@ check_args() {
|
|||||||
install_dependencies
|
install_dependencies
|
||||||
cd $PROJECT_NAME
|
cd $PROJECT_NAME
|
||||||
install-extra
|
install-extra
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user