Improve error handling

Bu işleme şunda yer alıyor:
Julian Ospald 2018-09-29 23:02:00 +08:00
ebeveyn f571138f85
işleme eb66e87593
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 511B62C09D50CD28
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme

Dosyayı Görüntüle

@ -283,6 +283,7 @@ install_ghc() {
}
for f in "${inst_location}"/bin/*-"${myghcver}" ; do
[ -e "${f}" ] || die "Something went wrong, ${f} does not exist!"
fn=$(basename "${f}")
# shellcheck disable=SC2046
edo ln $(echov "-v") -sf ../ghc/"${myghcver}/bin/${fn}" "${target_location}/${fn}"
@ -310,6 +311,7 @@ set_ghc() {
printf_green "Setting GHC to ${myghcver}"
for f in "${inst_location}"/bin/*-"${myghcver}" ; do
[ -e "${f}" ] || die "Something went wrong, ${f} does not exist!"
source_fn=$(basename "${f}")
target_fn=$(echo "${source_fn}" | sed "s#-${myghcver}##")
# shellcheck disable=SC2046