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