diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index a946060b..f3d7f433 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -2,7 +2,7 @@ # # dbginfo.sh - Tool to collect runtime, configuration, and trace information # -# Copyright IBM Corp. 2002, 2017 +# Copyright IBM Corp. 2002, 2018 # # s390-tools is free software; you can redistribute it and/or modify # it under the terms of the MIT license. See LICENSE for details. @@ -21,7 +21,7 @@ readonly SCRIPTNAME="${0##*/}" print_version() { cat <> ${WORKARCHIVE} <<" + pr_stdout " " + pr_stdout "Review the collected data before sending to your service organization. " + pr_stdout " " + elif [ $rc_tar -eq 127 ]; then + pr_stdout " " + pr_stdout "${SCRIPTNAME}: Error: tar command is not available!" + pr_stdout " Please install the corresponding package!" else - chmod 0600 "${WORKARCHIVE}" - pr_stdout " " - pr_stdout "Collected data was saved to:" - pr_stdout " >> ${WORKARCHIVE} <<" + pr_stdout " " + pr_stdout "${SCRIPTNAME}: Error: Collection of data failed!" + pr_stdout " The creation of \"${WORKARCHIVE}\" was not successful." + pr_stdout " Please check the directory \"${WORKDIR_BASE}\"" + pr_stdout " to provide enough free available space." fi - - pr_stdout " " - pr_stdout "Review the collected data before sending to your service organization. " - pr_stdout " " }