Unverified Commit 2382467b authored by *Kim Zick's avatar *Kim Zick Committed by GitHub
Browse files

Change `CPID` to something a little less cryptic

parent 17cf30a6
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment