Fix: setup (testing)

This commit is contained in:
Cyrille L 2022-03-23 17:25:51 +01:00
parent 7058caba2e
commit e4557335bd
4 changed files with 17 additions and 8 deletions

View File

@ -67,25 +67,30 @@ do
sudo mkdir -p "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
echo -ne " Owner $setup_user:"
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
sudp cp -rf "$setup_folder" \
sudp cp -rf "${PWD}$setup_folder/*" "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
done
echo "- Folder: $setup_dir_bin"
echo -ne " Created:"
sudo mkdir -p "$setup_dir_bin" \
&& cmd_res="$?" \
&& setup__check_err
&& setup__check_err
echo "- File: $setup_file_bin"
echo -ne " Owner $setup_user:"
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
&& cmd_res="$?" \
&& setup__check_err
echo -ne " Copy:"
echo -ne " Copy $PWD$set_bin_uri:"
sudo cp -f "$PWD$set_bin_uri" \
"$set_bin_uri" \
&& cmd_res="$?" \

View File

@ -1,5 +1,5 @@
#!/bin/bash
# version: 0.0.2
# version: 0.0.3
# file: upd
# Folder: /usr/local/bin
# By echolib

View File

@ -64,7 +64,6 @@ case "$arch" in
esac
C_NBR=${C_Green}
upd_nbr=0
upd_nbr=`cat "$upd_file_check" | wc -l`
(( $upd_nbr > 0 )) \
&& C_NBR=${C_Yellow} \

View File

@ -67,25 +67,30 @@ do
sudo mkdir -p "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
echo -ne " Owner $setup_user:"
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
sudp cp -rf "$setup_folder" \
sudp cp -rf "${PWD}$setup_folder/*" "$setup_folder" \
&& cmd_res="$?" \
&& setup__check_err
done
echo "- Folder: $setup_dir_bin"
echo -ne " Created:"
sudo mkdir -p "$setup_dir_bin" \
&& cmd_res="$?" \
&& setup__check_err
&& setup__check_err
echo "- File: $setup_file_bin"
echo -ne " Owner $setup_user:"
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
&& cmd_res="$?" \
&& setup__check_err
echo -ne " Copy:"
echo -ne " Copy $PWD$set_bin_uri:"
sudo cp -f "$PWD$set_bin_uri" \
"$set_bin_uri" \
&& cmd_res="$?" \