Fix: setup (testing)
This commit is contained in:
parent
7058caba2e
commit
e4557335bd
9
setup.sh
9
setup.sh
|
@ -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
|
||||
|
||||
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="$?" \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
# version: 0.0.2
|
||||
# version: 0.0.3
|
||||
# file: upd
|
||||
# Folder: /usr/local/bin
|
||||
# By echolib
|
||||
|
|
|
@ -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} \
|
||||
|
|
|
@ -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
|
||||
|
||||
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="$?" \
|
||||
|
|
Loading…
Reference in New Issue