Skip to content

Commit 9365793

Browse files
committed
Revert "[update] : Supported --debug in aur.sh"
This reverts commit ffe52b2.
1 parent 73c7bfa commit 9365793

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

system/aur.sh

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,35 +39,6 @@ function user_check () {
3939
fi
4040
}
4141

42-
_help() {
43-
echo "usage ${0} [option] [packages]"
44-
echo
45-
echo "Run yay in airootfs"
46-
echo
47-
echo " General options:"
48-
echo " -d Enable pacman debug"
49-
echo " -h This help message"
50-
}
51-
52-
while getopts "dh" arg; do
53-
case ${arg} in
54-
d)
55-
pacman_debug=true
56-
;;
57-
h)
58-
_help
59-
exit 0
60-
;;
61-
*)
62-
_help
63-
exit 1
64-
;;
65-
esac
66-
done
67-
68-
shift $((OPTIND - 1))
69-
70-
7142
# Creating a aur user.
7243
if [[ $(user_check ${aur_username}) = false ]]; then
7344
useradd -m -d "/aurbuild_temp" "${aur_username}"
@@ -96,14 +67,10 @@ yes | sudo -u aurbuild \
9667
--noupgrademenu \
9768
--noprovides \
9869
--removemake \
99-
$(
100-
if [[ "${pacman_debug}" = true ]]; then
101-
echo -n "--debug"
102-
fi
103-
) \
10470
--config "/etc/alteriso-pacman.conf" \
10571
${*}
10672

73+
10774
# remove user and file
10875
userdel aurbuild
10976
remove /aurbuild_temp

0 commit comments

Comments
 (0)