−exit
This commit is contained in:
parent
530681b688
commit
82ac82da2f
1 changed files with 8 additions and 8 deletions
16
spcd/main.sh
16
spcd/main.sh
|
@ -184,7 +184,7 @@ spcd_os_cat() {
|
||||||
spcd_cat__file="${1}"
|
spcd_cat__file="${1}"
|
||||||
if [ -n "${spcd_cat__file}" ]; then
|
if [ -n "${spcd_cat__file}" ]; then
|
||||||
spcd_frame_open "${spcd_cat__file}"
|
spcd_frame_open "${spcd_cat__file}"
|
||||||
cat "${spcd_cat__file}" || exit
|
cat "${spcd_cat__file}"
|
||||||
spcd_frame_shut "${spcd_cat__file}"
|
spcd_frame_shut "${spcd_cat__file}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ spcd_os_rm() {
|
||||||
spcd_os_rm__path="${1}"
|
spcd_os_rm__path="${1}"
|
||||||
if [ -e "${spcd_os_rm__path}" ]; then
|
if [ -e "${spcd_os_rm__path}" ]; then
|
||||||
echo "← ${spcd_os_rm__path}"
|
echo "← ${spcd_os_rm__path}"
|
||||||
rm -r "${spcd_os_rm__path}" || exit
|
rm -r "${spcd_os_rm__path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ spcd_python_ln() {
|
||||||
if [ -n "${spcd_python_ln__command}" ]; then
|
if [ -n "${spcd_python_ln__command}" ]; then
|
||||||
echo "→ ${SPCD_PYTHON_ALIAS} → ${spcd_python_ln__command}"
|
echo "→ ${SPCD_PYTHON_ALIAS} → ${spcd_python_ln__command}"
|
||||||
ln -f -s "${spcd_python_ln__command}" \
|
ln -f -s "${spcd_python_ln__command}" \
|
||||||
"/usr/bin/${SPCD_PYTHON_ALIAS}" || exit
|
"/usr/bin/${SPCD_PYTHON_ALIAS}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1022,7 +1022,7 @@ nameserver ${spcd_sdr__value}
|
||||||
|
|
||||||
spcd_update_packages_catalog() {
|
spcd_update_packages_catalog() {
|
||||||
spcd_step "Update packages catalog"
|
spcd_step "Update packages catalog"
|
||||||
${SPCD_PM_UPDATE} || exit
|
${SPCD_PM_UPDATE}
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_install_packages_tools() {
|
spcd_install_packages_tools() {
|
||||||
|
@ -1055,7 +1055,7 @@ spcd_write_ca_certificates() {
|
||||||
|
|
||||||
spcd_update_ca_certificates() {
|
spcd_update_ca_certificates() {
|
||||||
spcd_step "Update CA certificates"
|
spcd_step "Update CA certificates"
|
||||||
${SPCD_CMD_CA} || exit
|
${SPCD_CMD_CA}
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭───────┬─────╮
|
# ╭───────┬─────╮
|
||||||
|
@ -1069,7 +1069,7 @@ spcd_set_https_verification_on() {
|
||||||
|
|
||||||
spcd_upgrade_packages() {
|
spcd_upgrade_packages() {
|
||||||
spcd_step "Upgrade packages"
|
spcd_step "Upgrade packages"
|
||||||
${SPCD_PM_UPGRADE} || exit
|
${SPCD_PM_UPGRADE}
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_install_dos2unix() {
|
spcd_install_dos2unix() {
|
||||||
|
@ -1240,8 +1240,8 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
||||||
spcd_install_package() {
|
spcd_install_package() {
|
||||||
spcd_install_package__name="${1}"
|
spcd_install_package__name="${1}"
|
||||||
if [ -n "${spcd_install_package__name}" ]; then
|
if [ -n "${spcd_install_package__name}" ]; then
|
||||||
${SPCD_PM_INSTALL} "${spcd_install_package__name}" || exit
|
${SPCD_PM_INSTALL} "${spcd_install_package__name}"
|
||||||
${SPCD_PM_CLEAN} || exit
|
${SPCD_PM_CLEAN}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue