2def8e7499
Just use bash arrays directly. I.e. addHook preConfigure myPreConfigure is now preConfigureHooks+=(myPreConfigure)
6 lines
122 B
Bash
6 lines
122 B
Bash
unpackCmdHooks+=(_tryUnzip)
|
|
_tryUnzip() {
|
|
if ! [[ "foo.zip" =~ \.zip$ ]]; then return 1; fi
|
|
unzip -qq "$curSrc"
|
|
}
|