diff options
author | schrmh | 2018-09-18 05:44:21 +0200 |
---|---|---|
committer | schrmh | 2018-09-18 05:44:21 +0200 |
commit | caa4ca79e1a15a18e6623aa73258a8652242c166 (patch) | |
tree | cb682455f0f410fc4020086431c1de7c65cb4e06 /fakeAUR.sh | |
parent | f02ccb3e9f19f13af77c57074bee222af22ae9c2 (diff) | |
download | aur-caa4ca79e1a15a18e6623aa73258a8652242c166.tar.gz |
as before
Diffstat (limited to 'fakeAUR.sh')
-rwxr-xr-x | fakeAUR.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fakeAUR.sh b/fakeAUR.sh index 5cf910428cb3..788735d8ce0a 100755 --- a/fakeAUR.sh +++ b/fakeAUR.sh @@ -29,6 +29,8 @@ for i in "$@" ;; -debug ) processes=$(> >(ps -f)) + echo $processes + echo "and now reduced" pac=$(echo $processes | grep -o -P '(?<=CM).*(?=fakeAUR)' | grep -o -P '(?<=D).*(?=fakeAUR)' | grep -o -P "(?<=00:00:00).*(?=$USER)") echo $pac if [[ $pac = *"00"* ]]; then @@ -46,8 +48,8 @@ for i in "$@" description=$(echo -ne '\n' | eval "${pac:1}" | grep " ") name=$(echo ${pac:1} | grep -Eo "[^ ]+$") helper=$(echo ${pac:1} | grep -o '^\S*') - echo ${PS1@P}$helper $1 - echo -ne '\n' | eval ${pac:1} | sed -e "s/$name/$1/" | sed -e "s/$description/$2/" + echo ${PS1@P}$helper $2 + echo -ne '\n' | eval ${pac:1} | sed -e "s/$name/$2/" | sed -e "s/$description/$3/" ;; -btw ) processes=$(> >(ps -f)) |