#!/usr/bin/env bash

# 🅳🅾🆃🅵🅸🅻🅴🆂 (v0.2.469) - <https://dotfiles.io>
# Made with ♥ in London, UK by Sebastien Rousseau
# Copyright (c) 2015-2025. All rights reserved
# License: MIT

# shellcheck disable=SC1091
. "./lib/configurations/default/constants.sh"

# shellcheck disable=SC1091
. "./scripts/backup.sh"

# shellcheck disable=SC1091
. "./scripts/download.sh"

# shellcheck disable=SC1091
. "./scripts/unpack.sh"

# shellcheck disable=SC1091
. "./scripts/copy.sh"

## 🅱🆄🅸🅻🅳 - Build the dotfiles on your system.
build() {

  # shellcheck disable=SC2154
  echo "${RED}❭${NC} Preparing the dotfiles on your system."

  backup &&
    download &&
    unpack &&
    copy

}

args=$*               # Arguments passed to script.
export args="${args}" # Exporting arguments.
if [[ ${args} = "build" ]]; then
  echo "$*"
  build
fi
