Refactoring and pretty printing of information

This commit is contained in:
thomas committed 2017-10-15 00:01:00 +02:00
1 parent 99c7cc50a8
commit f0f2988423
7 files changed
+106 -40

No files matched your search

+11 -7
View File
@@ -1,14 +1,16 @@
#!/usr/bin/env bash
source ${DOTFILES}/helpers.sh
function main()
{
if [ ! -d "${HOME}/mnt" ]; then
mkdir "${HOME}/mnt"
mkdir "${HOME}/mnt/music"
mkdir "${HOME}/mnt/photos"
mkdir "${HOME}/mnt/video"
mkdir "${HOME}/mnt/NAS"
fi
print_info "Setting up user homedir mounts"
makedir "${HOME}/mnt"
makedir "${HOME}/mnt/music"
makedir "${HOME}/mnt/photo"
makedir "${HOME}/mnt/video"
makedir "${HOME}/mnt/NAS"
local auto_file="auto_nas_$(whoami)"
@@ -73,6 +75,8 @@ function main()
sudo launchctl load "${plistloc}"
fi
print_ok "User homedir mounts set up"
}
main "$@"