Skip to content

Commit

Permalink
Log output run environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed May 23, 2024
1 parent b5fe2f8 commit 61eeebd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ fi
start() {
echo "Starting..."

distro=$(grep '^PRETTY_NAME' /etc/os-release | awk -F '=' '{print $2}' | tr -d '"')
arch=$(uname -m)
echo "OS: ${distro} ${arch}"

if [[ ! -d "$exec_dir" ]]; then
echo "Creating directory ${exec_dir}"
mkdir -p "$exec_dir"
Expand Down

0 comments on commit 61eeebd

Please sign in to comment.