u
This commit is contained in:
@@ -66,7 +66,7 @@ create_dir() {
|
||||
if ! [ -d "$_directory" ]
|
||||
then
|
||||
echo ""
|
||||
echo "error: unable to created the directory '${_directory}'"
|
||||
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}"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user