Add setPermissions()
This commit is contained in:
parent
9923bfc641
commit
d3ad535653
10
pkgbuild.sh
10
pkgbuild.sh
|
@ -1,13 +1,17 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
setPermissions() {
|
||||||
|
echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
visudo -c
|
||||||
|
chmod -R a+rw .
|
||||||
|
}
|
||||||
|
|
||||||
runScript() {
|
runScript() {
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
pacman -Syu --noconfirm base-devel
|
pacman -Syu --noconfirm base-devel
|
||||||
|
|
||||||
echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
setPermissions
|
||||||
visudo -c
|
|
||||||
chmod -R a+rw .
|
|
||||||
|
|
||||||
baseDir="$PWD"
|
baseDir="$PWD"
|
||||||
[ -n "$INPUT_PKGDIR" ] && inBaseDir=true || inBaseDir=false
|
[ -n "$INPUT_PKGDIR" ] && inBaseDir=true || inBaseDir=false
|
||||||
|
|
Loading…
Reference in New Issue