Skip to content

Instantly share code, notes, and snippets.

@emanuel-braz
Last active July 28, 2024 17:14
Show Gist options
  • Save emanuel-braz/9adf6e767b2439ffbc60ce7bb0f459ad to your computer and use it in GitHub Desktop.
Save emanuel-braz/9adf6e767b2439ffbc60ce7bb0f459ad to your computer and use it in GitHub Desktop.
Hello World from Gist - VSCode extension
echo Hello World from Gist!
echo Hello World 1!
pwd
echo Hello World 2! && echo Hello World 2.5!
echo $ANDROID_HOME
say "Hello World from Mobile Dev Tools" -v "Samantha"
#!/bin/bash
# Define an array of commands to be executed
declare -a commands=(
"pwd"
"echo My script!"
)
# Iterate over the array and execute each command
for cmd in "${commands[@]}"; do
echo "Executing: $cmd"
eval $cmd
if [ $? -eq 0 ]; then
echo "Command executed successfully."
else
echo "Command failed."
fi
echo "---------------------------------"
done
echo "All commands executed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment