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