mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-04 14:39:01 +00:00
style: format shell scripts
This commit is contained in:
23 files changed
+355
-371
No files matched your search
@@ -15,15 +15,13 @@ cd /home/container || exit 1
|
||||
printf "\033[1m\033[33mcontainer@pelican~ \033[0mjava -version\n"
|
||||
java -version
|
||||
|
||||
|
||||
# Print Python version
|
||||
if command -v python &> /dev/null
|
||||
then
|
||||
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython --version\n"
|
||||
python --version
|
||||
if command -v python &>/dev/null; then
|
||||
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython --version\n"
|
||||
python --version
|
||||
else
|
||||
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython3 --version\n"
|
||||
python3 --version
|
||||
printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython3 --version\n"
|
||||
python3 --version
|
||||
fi
|
||||
|
||||
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||
|
||||
Reference in new issue
Block a user