Skip to content

Commit

Permalink
fix logpath
Browse files Browse the repository at this point in the history
  • Loading branch information
excalibur1234 committed Jun 8, 2018
1 parent bb827d9 commit 13a59ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pacui
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,12 @@ function func_m
echo ""


echo " checking systemctl ..."

echo ""



echo " checking symlinks ..."
if [[ -n "$(sudo find -xtype l)" ]] # only run, if output of "sudo find -xtype l -print" is not empty
then
Expand Down Expand Up @@ -905,7 +911,7 @@ function func_b
fi

# get log file path from file /etc/pacman.conf (without any white spaces) and write results to variable $logpath:
logpath="$( awk -F '=' '/^logpath/ {gsub(" ","",$2); print $2}' '/etc/pacman.conf' )"
logpath="$( awk -F '=' '/^LogFile/ {gsub(" ","",$2); print $2}' '/etc/pacman.conf' )"
# set variable $logpath to default directory, if variable $logpath is empty:
if [[ -z "$logpath" ]] # if "logpath" variable is empty (exact: if output of $logpath is zero)
then
Expand Down

0 comments on commit 13a59ab

Please sign in to comment.