Change directories to lower case
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
4645e18f64
commit
ee60d3cb64
9 changed files with 57 additions and 43 deletions
38
install
38
install
|
@ -24,18 +24,22 @@ HOST="$(hostname)"
|
|||
# Directories which should be created
|
||||
DIRECTORIES=(
|
||||
".local/log"
|
||||
"Build"
|
||||
"Downloads"
|
||||
"build"
|
||||
"documents"
|
||||
"downloads"
|
||||
".local/keys"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Projects"
|
||||
"Tasks"
|
||||
"Videos"
|
||||
"music"
|
||||
"pictures"
|
||||
"projects"
|
||||
"tasks"
|
||||
"videos"
|
||||
)
|
||||
|
||||
WORK_DIRECTORIES=(
|
||||
"Work"
|
||||
"work"
|
||||
".local/log"
|
||||
"downloads"
|
||||
".local/keys"
|
||||
)
|
||||
|
||||
# Files which should be symlinked in the home folder
|
||||
|
@ -83,8 +87,8 @@ LINKED_FILES_HOME=(
|
|||
# Symlinks which will be created
|
||||
declare -A LINKED_FILES
|
||||
LINKED_FILES=(
|
||||
["${HOME}/Music"]="${HOME}/Documents/Media/Music"
|
||||
["${HOME}/Pictures"]="${HOME}/Documents/Media/Pictures"
|
||||
["${HOME}/music"]="${HOME}/documents/Media/Music"
|
||||
["${HOME}/pictures"]="${HOME}/documents/Media/Pictures"
|
||||
)
|
||||
|
||||
# Permissions to set for folders and files
|
||||
|
@ -106,7 +110,6 @@ SYSTEMD_SERVICES=(
|
|||
"NetworkManager"
|
||||
"org.cups.cupsd"
|
||||
"suspend"
|
||||
"sxhkd"
|
||||
"xboxdrv"
|
||||
)
|
||||
|
||||
|
@ -142,19 +145,20 @@ yay -S --noconfirm --needed "$(cat "${PACKAGES_DIR}/packages.list")"
|
|||
# Creating directories #
|
||||
###############################################################################
|
||||
print_section "Creating directories"
|
||||
for dir in "${DIRECTORIES[@]}"
|
||||
do
|
||||
print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}"
|
||||
mkdir -p "${HOME}/${dir}"
|
||||
done
|
||||
|
||||
|
||||
if [ "${IS_WORK}" = "1" ]; then
|
||||
print_section "Creating work directories"
|
||||
for dir in "${WORK_DIRECTORIES[@]}"
|
||||
do
|
||||
print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}"
|
||||
mkdir -p "${HOME}/${dir}"
|
||||
done
|
||||
else
|
||||
for dir in "${DIRECTORIES[@]}"
|
||||
do
|
||||
print_log "Creating directory ${YELLOW}${HOME}/${dir}${RESET}"
|
||||
mkdir -p "${HOME}/${dir}"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue