Compare commits
No commits in common. "008a44c5eb1eaacc5bc663699593af8b0d974b7e" and "ccd2b803d854f853c1521e40bf3d305f2a97abe1" have entirely different histories.
008a44c5eb
...
ccd2b803d8
2 changed files with 11 additions and 6 deletions
15
pidd.sh
15
pidd.sh
|
@ -372,8 +372,9 @@ Acquire::https::Verify-Peer False;
|
|||
# github → gitea → forgejo
|
||||
if [ -n "${GITHUB_SERVER_URL}" ]; then
|
||||
PIDD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")//"
|
||||
[ -n "${GITHUB_TOKEN}" ] &&
|
||||
if [ -n "${GITHUB_TOKEN}" ]; then
|
||||
PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}${GITHUB_TOKEN}@"
|
||||
fi
|
||||
PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
|
||||
else
|
||||
pidd_error_ci "GITHUB_SERVER_URL"
|
||||
|
@ -700,10 +701,11 @@ pidd_error_os() {
|
|||
|
||||
pidd_grep_os() {
|
||||
pidd_grep_os__variable="${1}"
|
||||
[ -n "${pidd_grep_os__variable}" ] &&
|
||||
if [ -n "${pidd_grep_os__variable}" ]; then
|
||||
grep "^${pidd_grep_os__variable}=" "/etc/os-release" |
|
||||
sed "s|^${pidd_grep_os__variable}=||" |
|
||||
sed "s|^${pidd_grep_os__variable}=||" |
|
||||
sed "s|^\"\(.*\)\"$|\1|"
|
||||
fi
|
||||
}
|
||||
|
||||
pidd_install_package() {
|
||||
|
@ -717,8 +719,8 @@ pidd_ln_python() {
|
|||
pidd_ln_python__command="${1}"
|
||||
if [ -n "${pidd_ln_python__command}" ]; then
|
||||
echo "→ ${PIDD_PYTHON_ALIAS} → ${pidd_ln_python__command}"
|
||||
ln -f -s "${pidd_ln_python__command}" \
|
||||
"/usr/bin/${PIDD_PYTHON_ALIAS}" || exit
|
||||
ln -f -s "${pidd_ln_python__command}" "/usr/bin/${PIDD_PYTHON_ALIAS}" ||
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -768,7 +770,8 @@ pidd_sed() {
|
|||
pidd_cat "${pidd_sed__file}"
|
||||
for pidd_sed__regex in "${@}"; do
|
||||
sed --in-place "s${pidd_sed__regex}g" "${pidd_sed__file}" &&
|
||||
pidd_cat "${pidd_sed__file}" || exit
|
||||
pidd_cat "${pidd_sed__file}" ||
|
||||
exit
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -88,7 +88,9 @@ from various contexts of CA, CI and OCI / OS.
|
|||
* lint
|
||||
* .py
|
||||
* .sh
|
||||
* write bootstrap entry point
|
||||
|
||||
### .sh
|
||||
|
||||
* reduce single conditions with &&
|
||||
* support opensuse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue