Skip to content

Commit

Permalink
Fix procinfo use
Browse files Browse the repository at this point in the history
procinfo -a is not valid on most distros
  • Loading branch information
simoniz0r committed Jul 9, 2019
1 parent aa5e960 commit 7a688df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions troubleshooter.sh
Expand Up @@ -44,8 +44,8 @@ else
echo -e "\nKernel: $(uname -a)\n" >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
echo -e "##### Hardware Information:\n" >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
echo "Getting available information from '/proc' ('procinfo -a')..."
echo -e "\n###\n### 'procinfo -a':\n###\n" >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
procinfo -a >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
echo -e "\n###\n### 'procinfo':\n###\n" >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
procinfo >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
echo "Getting CPU information ('lscpu')..."
echo -e "\n###\n### 'lscpu':\n###\n" >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
lscpu >> "$TLOG_OUT_DIR"/troubleshooter."$LOG_DATE".log
Expand Down

0 comments on commit 7a688df

Please sign in to comment.