.git broken, restart

This commit is contained in:
dangerboot
2026-01-23 08:55:18 +01:00
commit d1be8ebdca
206 changed files with 8431 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
ps_parents ()
{
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <pid>";
return 1;
fi;
pid=$1;
while [ "$pid" -ne 1 ]; do
ps -p $pid -o pid=,ppid=,cmd=;
pid=$(ps -p $pid -o ppid= --no-headers);
done
}
ps_parents "$@"