newline for .sh, trying to get sudo to work

This commit is contained in:
Giovanni Harting 2021-06-30 14:54:31 +02:00
parent 4efa17fc9e
commit c4f370ef37
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
cd "$1" && git clean -xdff
cd "$1" && git clean -xdff

View File

@ -219,7 +219,7 @@ func increasePkgRel(pkg *BuildPackage) {
}
func gitClean(pkg *BuildPackage) {
cmd := backgroundCmd("sudo", "git_clean.sh "+filepath.Dir(pkg.Pkgbuild))
cmd := backgroundCmd("sudo", "git_clean.sh", filepath.Dir(pkg.Pkgbuild))
res, err := cmd.CombinedOutput()
if err != nil {
log.Warningf("git clean failed with %v:\n%s", err, res)
@ -587,7 +587,7 @@ func (b *BuildManager) syncWorker() {
log.Debug(string(res))
check(err)
} else if err == nil {
cmd := backgroundCmd("sudo", "git_clean.sh "+gitPath)
cmd := backgroundCmd("sudo", "git_clean.sh", gitPath)
res, err := cmd.CombinedOutput()
log.Debug(string(res))
check(err)