about summary refs log tree commit diff stats
path: root/update.sh
blob: 1b10dab20f8a8f915009e1fc4276140ceaac607a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env sh
__update_sh_run() {
    __update_sh_command="$1"
    shift 1

    printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command") $*' .."

    "$__update_sh_command" "$@"

    unset __update_sh_command
}

__update_sh_run nix flake update
__update_sh_run ./pkgs/update_pkgs.sh "$@"

__update_sh_run build.sh
__update_sh_run check.sh
# vim: ft=sh