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" \
|
sudo mkdir -p "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
|
|
||||||
echo -ne " Owner $setup_user:"
|
echo -ne " Owner $setup_user:"
|
||||||
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
sudp cp -rf "$setup_folder" \
|
|
||||||
|
sudp cp -rf "${PWD}$setup_folder/*" "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "- Folder: $setup_dir_bin"
|
echo "- Folder: $setup_dir_bin"
|
||||||
echo -ne " Created:"
|
echo -ne " Created:"
|
||||||
sudo mkdir -p "$setup_dir_bin" \
|
sudo mkdir -p "$setup_dir_bin" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
|
|
||||||
echo "- File: $setup_file_bin"
|
echo "- File: $setup_file_bin"
|
||||||
echo -ne " Owner $setup_user:"
|
echo -ne " Owner $setup_user:"
|
||||||
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
echo -ne " Copy:"
|
|
||||||
|
echo -ne " Copy $PWD$set_bin_uri:"
|
||||||
sudo cp -f "$PWD$set_bin_uri" \
|
sudo cp -f "$PWD$set_bin_uri" \
|
||||||
"$set_bin_uri" \
|
"$set_bin_uri" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# version: 0.0.2
|
# version: 0.0.3
|
||||||
# file: upd
|
# file: upd
|
||||||
# Folder: /usr/local/bin
|
# Folder: /usr/local/bin
|
||||||
# By echolib
|
# By echolib
|
||||||
|
|
|
@ -64,7 +64,6 @@ case "$arch" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
C_NBR=${C_Green}
|
C_NBR=${C_Green}
|
||||||
upd_nbr=0
|
|
||||||
upd_nbr=`cat "$upd_file_check" | wc -l`
|
upd_nbr=`cat "$upd_file_check" | wc -l`
|
||||||
(( $upd_nbr > 0 )) \
|
(( $upd_nbr > 0 )) \
|
||||||
&& C_NBR=${C_Yellow} \
|
&& C_NBR=${C_Yellow} \
|
||||||
|
|
|
@ -67,25 +67,30 @@ do
|
||||||
sudo mkdir -p "$setup_folder" \
|
sudo mkdir -p "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
|
|
||||||
echo -ne " Owner $setup_user:"
|
echo -ne " Owner $setup_user:"
|
||||||
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
sudp cp -rf "$setup_folder" \
|
|
||||||
|
sudp cp -rf "${PWD}$setup_folder/*" "$setup_folder" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "- Folder: $setup_dir_bin"
|
echo "- Folder: $setup_dir_bin"
|
||||||
echo -ne " Created:"
|
echo -ne " Created:"
|
||||||
sudo mkdir -p "$setup_dir_bin" \
|
sudo mkdir -p "$setup_dir_bin" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
|
|
||||||
echo "- File: $setup_file_bin"
|
echo "- File: $setup_file_bin"
|
||||||
echo -ne " Owner $setup_user:"
|
echo -ne " Owner $setup_user:"
|
||||||
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
&& setup__check_err
|
&& setup__check_err
|
||||||
echo -ne " Copy:"
|
|
||||||
|
echo -ne " Copy $PWD$set_bin_uri:"
|
||||||
sudo cp -f "$PWD$set_bin_uri" \
|
sudo cp -f "$PWD$set_bin_uri" \
|
||||||
"$set_bin_uri" \
|
"$set_bin_uri" \
|
||||||
&& cmd_res="$?" \
|
&& cmd_res="$?" \
|
||||||
|
|
Loading…
Reference in New Issue