File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed
Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff 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.
7243if [[ $( 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
10875userdel aurbuild
10976remove /aurbuild_temp
You can’t perform that action at this time.
0 commit comments