quick fix

This commit is contained in:
pvincent
2026-08-08 13:15:05 +04:00
parent e5dc1c6218
commit d365147744
2 changed files with 3 additions and 7 deletions
+3 -4
View File
@@ -29,12 +29,10 @@ function no_more_skeleton {
}
function link_etc {
echo 1
local filename="$1" subfolder="${2:-}"
local link_name="$filename"
[[ -v LINK_NAME ]] && link_name="$LINK_NAME"
echo 2
local source="$MIAOU_BASH_DIR/etc"
local destination="/etc"
[[ -n "$subfolder" ]] && source+="/${subfolder}" && destination+="/${subfolder}"
@@ -51,7 +49,6 @@ function link_etc {
ln -s "$source/$filename" "$destination/$link_name"
echo "link $source/$link_name created"
fi
echo 3
}
function link_config_files {
@@ -72,10 +69,12 @@ function link_config_files {
}
function in_azerty_zone {
[[ -L /etc/localtime ]] || return 1
local zone
zone=$(readlink /etc/localtime)
zone="${zone#/usr/share/zoneinfo/}" # remove prefix
for i in "${AZERTY_ZONES[@]}"; do [[ "$zone" == "$i" ]] && return 0; done
for i in "${AZERTY_ZONES[@]}"; do [[ "$zone" == "$i" ]] && return; done
return 1
}
-3
View File
@@ -29,12 +29,9 @@ if [[ "$current" == "$latest" ]]; then
else
# TODO: prevent refresh from development purpose
rm -rf "$MIAOU_BASH_DIR"
echo BEFORE bootstrap
bootstrap
echo BEFORE init
miaou-bash "$MIAOU_BASH_DIR/lib/init.bash"
echo AFTER INIT
echo "miaou-bash successfully updated"
miaou-bash --version
fi