forked from ahurac/dotfiles
updateall : suppression des fonctions separator et makeline
This commit is contained in:
parent
e178f4d504
commit
53febf8df0
1 changed files with 0 additions and 17 deletions
|
@ -9,23 +9,6 @@ unset realpath
|
||||||
|
|
||||||
scripts_d=./scripts
|
scripts_d=./scripts
|
||||||
|
|
||||||
# Fonction pour fabriquer une ligne de la longueur d'un tiers du terminal
|
|
||||||
makeline() {
|
|
||||||
local cols line
|
|
||||||
cols="$(($(tput cols) / 3))"
|
|
||||||
while [ "${#line}" -lt "$cols" ]; do
|
|
||||||
line="${line}${1}"
|
|
||||||
done
|
|
||||||
printf %s "$line"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Fonction pour afficher un séparateur
|
|
||||||
separator() {
|
|
||||||
local line
|
|
||||||
line="$(makeline '=')"
|
|
||||||
printf '\n%s\n\t%s\n%s\n' "$line" "$*" "$line"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Procédure principale
|
# Procédure principale
|
||||||
main() {
|
main() {
|
||||||
for i in "${scripts_d}/"*; do
|
for i in "${scripts_d}/"*; do
|
||||||
|
|
Loading…
Reference in a new issue