Bug fixes and added pre_update.sh pacakge scripts #7

Merged
EnumDev merged 5 commits from develop into master 2024-10-23 06:18:01 +00:00
Showing only changes of commit e1726ddce5 - Show all commits

View File

@ -316,6 +316,12 @@ func ExecutePackageScripts(filename, rootDir string, operation Operation, postOp
} }
} }
} else if operation == Remove { } else if operation == Remove {
if val, ok := scripts["pre_remove.sh"]; !postOperation && ok {
err := run("pre_remove.sh", val)
if err != nil {
return err
}
}
if val, ok := scripts["post_remove.sh"]; postOperation && ok { if val, ok := scripts["post_remove.sh"]; postOperation && ok {
err := run("post_remove.sh", val) err := run("post_remove.sh", val)
if err != nil { if err != nil {