Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Rootを取得するタイミングを変更
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Feb 4, 2020
1 parent 2b470b6 commit 597fea4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions eg-installer
Original file line number Diff line number Diff line change
Expand Up @@ -284,18 +284,6 @@ function show_version () {



#-- Rootチェック --#
if [[ ! $UID = 0 ]]; then
if [[ ! -f /tmp/user || -w /tmp/user ]]; then
echo -n 'aur_user=' > /tmp/user
echo "$(whoami)" >> /tmp/user
fi
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $current_path $options
exit
fi



#-- デバッグ用引数 --#
while getopts 'adeg:hpr:s:t:u:vwxz-:' arg; do
case "${arg}" in
Expand Down Expand Up @@ -333,6 +321,18 @@ done



#-- Rootチェック --#
if [[ ! $UID = 0 ]]; then
if [[ ! -f /tmp/user || -w /tmp/user ]]; then
echo -n 'aur_user=' > /tmp/user
echo "$(whoami)" >> /tmp/user
fi
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $current_path $options
exit
fi



#-- check_pkgについて --#
if [[ ! $(type -t installed_list) = "function" ]]; then
if [[ -f "/usr/bin/pacman" ]]; then
Expand Down

0 comments on commit 597fea4

Please sign in to comment.