/ improved create_dir() func
by some weird reason, directories would no longer be created. no idea why. i wish i knew.
This commit is contained in:
@@ -54,7 +54,6 @@ download_repo() {
|
||||
wget --no-check-certificate --show-progress ${_targz_url} -O ${clone_trg}/tmp.tar.gz
|
||||
tar -xzf ${clone_trg}/tmp.tar.gz -C ${clone_trg}
|
||||
rm ${clone_trg}/tmp.tar.gz
|
||||
|
||||
}
|
||||
|
||||
create_dir() {
|
||||
@@ -70,6 +69,7 @@ create_dir() {
|
||||
echo " command:"
|
||||
echo " runuser -l ${system_user} -c '${mkdir_command}'"
|
||||
echo "will try creating the directory as root, and changing owner"
|
||||
|
||||
mkdir -p "${_directory}"
|
||||
sudo chown -R ${system_user}:${system_user} "${_directory}"
|
||||
|
||||
@@ -80,7 +80,6 @@ create_dir() {
|
||||
echo "failure! directory could not be created."
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
deploy_file() {
|
||||
@@ -352,10 +351,10 @@ if [ ${operation} == "dots" ] ; then
|
||||
deploy_file "${dots_trg}/nitrogen/*" "${file_path}/"
|
||||
|
||||
# onedrive-gui
|
||||
#file_name=profiles
|
||||
file_name=profiles
|
||||
file_path=/home/${system_user}/.config/onedrive-gui
|
||||
create_dir ${file_path}
|
||||
#deploy_file "${dots_trg}/onedrive-gui/${file_name}" "${file_path}/${file_name}"
|
||||
deploy_file "${dots_trg}/onedrive-gui/${file_name}" "${file_path}/${file_name}"
|
||||
|
||||
# pcmanfm
|
||||
# bookmarks found in "dots/gtk/.gtk-bookmarks"
|
||||
|
||||
Reference in New Issue
Block a user