Compare commits
5 Commits
15ef317029
...
241d53ebc4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
241d53ebc4 | ||
|
|
1225230a07 | ||
|
|
9c43190202 | ||
|
|
9477638a28 | ||
|
|
f16ad711fb |
@@ -422,7 +422,7 @@ taz()
|
|||||||
disp W "xz format is not suited for long term archiving."
|
disp W "xz format is not suited for long term archiving."
|
||||||
disp I "See https://www.nongnu.org/lzip/xz_inadequate.html for details."
|
disp I "See https://www.nongnu.org/lzip/xz_inadequate.html for details."
|
||||||
|
|
||||||
# Compresse to xz (lzma2) - Deprecated
|
# Compress with xz (lzma2) - Deprecated
|
||||||
xz "${verb[@]}" --compress --keep "-$3" -T "$2" "$1"
|
xz "${verb[@]}" --compress --keep "-$3" -T "$2" "$1"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
@@ -449,7 +449,7 @@ taz()
|
|||||||
[[ $4 ]] && opt=('-vv')
|
[[ $4 ]] && opt=('-vv')
|
||||||
opt+=("$procopt")
|
opt+=("$procopt")
|
||||||
|
|
||||||
# Compresse au format lzip (lzma)
|
# Compress with lzip (lzma)
|
||||||
$command "${opt[@]}" --keep "-$3" "$1"
|
$command "${opt[@]}" --keep "-$3" "$1"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
@@ -503,7 +503,7 @@ taz()
|
|||||||
[[ $4 ]] && opt=('-v')
|
[[ $4 ]] && opt=('-v')
|
||||||
opt+=("$procopt")
|
opt+=("$procopt")
|
||||||
|
|
||||||
# Compresse au format bz2
|
# Compress with bz2
|
||||||
$command "${opt[@]}" --compress --keep "-$3" "$1"
|
$command "${opt[@]}" --compress --keep "-$3" "$1"
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Green="\e[0;96m" # teal (ICyan — abyss string colour)
|
|||||||
Yellow="\e[0;93m" # bright gold (IYellow — abyss constant colour)
|
Yellow="\e[0;93m" # bright gold (IYellow — abyss constant colour)
|
||||||
|
|
||||||
PROMPT_COLOR_TIME_FG="$ICyan" # electric teal clock
|
PROMPT_COLOR_TIME_FG="$ICyan" # electric teal clock
|
||||||
PROMPT_COLOR_TIME_BG="\e[48;2;0;40;45m" # very dark cyan bg for time
|
PROMPT_COLOR_TIME_BG="\e[48;2;0;60;70m" # very dark cyan bg for time
|
||||||
PROMPT_COLOR_BAR_BG="\e[48;2;0;30;70m" # deep navy bar (24-bit)
|
PROMPT_COLOR_BAR_BG="\e[48;2;0;30;70m" # deep navy bar (24-bit)
|
||||||
|
|
||||||
PROMPT_COLOR_OK_FG="$ICyan" # teal on success
|
PROMPT_COLOR_OK_FG="$ICyan" # teal on success
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ Blue="\e[0;94m" # electric blue (IBlue)
|
|||||||
Purple="\e[0;95m" # vivid magenta (IPurple — Plasma's signature colour)
|
Purple="\e[0;95m" # vivid magenta (IPurple — Plasma's signature colour)
|
||||||
Cyan="\e[0;96m" # electric cyan (ICyan)
|
Cyan="\e[0;96m" # electric cyan (ICyan)
|
||||||
|
|
||||||
PROMPT_COLOR_TIME_FG="$IPurple" # vivid purple clock text
|
PROMPT_COLOR_TIME_FG="$BIPurple" # vivid purple clock text
|
||||||
PROMPT_COLOR_TIME_BG="\e[48;2;30;30;35m" # deep charcoal (darker than On_IBlack)
|
PROMPT_COLOR_TIME_BG="\e[48;2;50;50;55m" # deep charcoal (darker than On_IBlack)
|
||||||
PROMPT_COLOR_BAR_BG="\e[48;2;75;0;130m" # deep indigo-purple (24-bit) — darker than On_Purple
|
PROMPT_COLOR_BAR_BG="\e[48;2;75;0;130m" # deep indigo-purple (24-bit) — darker than On_Purple
|
||||||
|
|
||||||
PROMPT_COLOR_OK_FG="$ICyan" # electric cyan on success
|
PROMPT_COLOR_OK_FG="$ICyan" # electric cyan on success
|
||||||
|
|||||||
@@ -183,7 +183,8 @@ load_conf()
|
|||||||
{
|
{
|
||||||
local section_name="CONF_$1"
|
local section_name="CONF_$1"
|
||||||
|
|
||||||
[[ "$(declare -p "$section_name" 2>/dev/null)" != "declare -A"* ]] && return 1
|
# Missing section is not an error: modules can rely on built-in defaults.
|
||||||
|
[[ "$(declare -p "$section_name" 2>/dev/null)" != "declare -A"* ]] && return 0
|
||||||
|
|
||||||
local -n current_vars="$section_name"
|
local -n current_vars="$section_name"
|
||||||
|
|
||||||
@@ -215,12 +216,12 @@ if [[ ! -e "$MYPATH/profile.sh" ]]; then
|
|||||||
echo "[ Warning ] Path detection failed, trying to use pwd..."
|
echo "[ Warning ] Path detection failed, trying to use pwd..."
|
||||||
MYPATH=$(pwd)
|
MYPATH=$(pwd)
|
||||||
if [[ ! -e "$MYPATH/profile.sh" ]]; then
|
if [[ ! -e "$MYPATH/profile.sh" ]]; then
|
||||||
echo "[ Error ] Impossible to determine installation path, pretty much nothing will work."
|
echo "[ Error ] Unable to determine installation path, pretty much nothing will work."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -s "$MYPATH/version" ]]; then
|
if [[ ! -s "$MYPATH/version" ]]; then
|
||||||
echo "[ Warning ] Impossible to determine running version of profile, your installation might be broken."
|
echo "[ Warning ] Unable to determine running profile version; your installation might be broken."
|
||||||
fi
|
fi
|
||||||
PROFVERSION=$(cat "$MYPATH"/version)
|
PROFVERSION=$(cat "$MYPATH"/version)
|
||||||
export PROFVERSION
|
export PROFVERSION
|
||||||
@@ -276,7 +277,7 @@ if [[ $INTERACTIVE ]]; then
|
|||||||
fi
|
fi
|
||||||
showinfo && printf "\n"
|
showinfo && printf "\n"
|
||||||
check_updates -q
|
check_updates -q
|
||||||
disp I "Profile version $PROFVERSION chargé..."
|
disp I "Profile version $PROFVERSION loaded..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|||||||
Reference in New Issue
Block a user