This commit is contained in:
committer@tuxwarrior
2025-02-24 20:03:32 -05:00
parent 6fd0de2579
commit 4b5beb1398
2 changed files with 2 additions and 4 deletions

View File

@@ -66,8 +66,8 @@ create_dir() {
if ! [ -d "$_directory" ]
then
echo ""
echo "error: unable to created the directory '${_directory}'"
echo "failed command: '${mkdir_command}'"
echo "error: unable to create the directory '${_directory}' as user '${system_user}'"
echo " failed command: '${mkdir_command}'"
fi
}
@@ -343,7 +343,6 @@ if [ ${operation} == "dots" ] ; then
# onedrive-gui
#file_name=profiles
file_path=/home/${system_user}/.config/onedrive-gui
file_path=/home/${system_user}/.config/test
create_dir ${file_path}
#deploy_file "${dots_trg}/onedrive-gui/${file_name}" "${file_path}/${file_name}"

View File

@@ -25,7 +25,6 @@ this_file=curae.sh
# https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script
#if [ "$EUID" -ne 0 ]
if [ $(id -u) -ne 0 ]
then echo "error: run as 'root'"
exit