Change `CPID` to something a little less cryptic

pull/283/head
*Kim Zick 2019-12-17 11:04:45 -05:00 committed by GitHub
parent 17cf30a69c
commit 2382467b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PANE_PID="$1"
CPID=$(pgrep -P $PANE_PID)
COMMAND_PID=$(pgrep -P $PANE_PID)
exit_safely_if_empty_ppid() {
if [ -z "$PANE_PID" ]; then
@ -12,8 +12,8 @@ exit_safely_if_empty_ppid() {
}
full_command() {
[[ -z "$CPID" ]] && exit 0
cat /proc/${CPID}/cmdline | xargs -0 printf "%q "
[[ -z "$COMMAND_PID" ]] && exit 0
cat /proc/${COMMAND_PID}/cmdline | xargs -0 printf "%q "
}
main() {