Skip to content

Commit

Permalink
Merge pull request #301 from rancherlabs/Tejeev-patch-1
Browse files Browse the repository at this point in the history
Update rancher2_logs_collector.sh to print help before exit
  • Loading branch information
dkeightley authored Aug 29, 2024
2 parents 751af71 + 689ad49 commit a981ae6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ techo() {
# Check if we're running as root.
if [[ $EUID -ne 0 ]] && [[ "${DEV}" == "" ]]
then
help
techo "This script must be run as root"
exit 1
fi
Expand Down

0 comments on commit a981ae6

Please sign in to comment.