Skip to content

Commit

Permalink
adjusting path
Browse files Browse the repository at this point in the history
  • Loading branch information
cmames committed Jan 28, 2021
1 parent 9ba8427 commit fa31360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zramit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ done

# change path destination for some system which don't have /usr/local/sbin
# and choose a path in PATH
if [ $(echo "$PATH" | grep -c "/usr/local/sbin") = 1 ];then
if [ "$(echo "$PATH" | grep -c "/usr/local/sbin")" = 1 ];then
_path="/usr/local/sbin"
else
if [ $(echo "$PATH" | grep -c "/usr/sbin") = 1 ];then
if [ "$(echo "$PATH" | grep -c "/usr/sbin")" = 1 ];then
_path="/usr/sbin"
else
if [ $(echo "$PATH" | grep -c "/usr/local/bin") = 1 ];then
if [ "$(echo "$PATH" | grep -c "/usr/local/bin")" = 1 ];then
_path="/usr/local/bin"
else _path="/usr/bin"
fi
Expand Down

0 comments on commit fa31360

Please sign in to comment.