File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh -l
1
+ #! /bin/bash
2
2
3
3
# fail whole script if any command fails
4
4
set -e
@@ -27,20 +27,20 @@ if [[ ! -e $pkgname/PKGBUILD ]]; then
27
27
exit 1
28
28
fi
29
29
30
- pkgbuild_dir=$( readlink $pkgname -f) # nicely cleans up path, ie. ///dsq/dqsdsq/my-package//// -> /dsq/dqsdsq/my-package
30
+ pkgbuild_dir=$( readlink " $pkgname " -f) # nicely cleans up path, ie. ///dsq/dqsdsq/my-package//// -> /dsq/dqsdsq/my-package
31
31
32
32
getfacl -p -R " $pkgbuild_dir " /github/home > /tmp/arch-pkgbuild-builder-permissions.bak
33
33
34
34
# '/github/workspace' is mounted as a volume and has owner set to root
35
35
# set the owner of $pkgbuild_dir to the 'build' user, so it can access package files.
36
- sudo chown -R build $pkgbuild_dir
36
+ sudo chown -R build " $pkgbuild_dir "
37
37
38
38
# needs permissions so '/github/home/.config/yay' is accessible by yay
39
39
sudo chown -R build /github/home
40
40
41
- cd $pkgbuild_dir
41
+ cd " $pkgbuild_dir "
42
42
43
- pkgname=" $( basename $pkgbuild_dir ) " # keep quotes in case someone passes in a directory path with whitespaces...
43
+ pkgname=" $( basename " $pkgbuild_dir " ) " # keep quotes in case someone passes in a directory path with whitespaces...
44
44
45
45
install_deps () {
46
46
# install make and regular package dependencies
@@ -56,7 +56,10 @@ case $target in
56
56
install_deps
57
57
makepkg --syncdeps --noconfirm
58
58
namcap " ${pkgname} " -*
59
+
60
+ # shellcheck disable=SC1091
59
61
source /etc/makepkg.conf # get PKGEXT
62
+
60
63
pacman -Qip " ${pkgname} " -* " ${PKGEXT} "
61
64
pacman -Qlp " ${pkgname} " -* " ${PKGEXT} "
62
65
;;
You can’t perform that action at this time.
0 commit comments