Fix: check + setup (testing)
This commit is contained in:
parent
90d4e22ea4
commit
f25d215b23
15
setup.sh
15
setup.sh
|
@ -70,7 +70,10 @@ do
|
|||
echo -ne " Owner $setup_user:"
|
||||
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
&& setup__check_err
|
||||
sudp cp -rf "$setup_folder" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
done
|
||||
echo "- Folder: $setup_dir_bin"
|
||||
echo -ne " Created:"
|
||||
|
@ -78,15 +81,15 @@ sudo mkdir -p "$setup_dir_bin" \
|
|||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo "- File: $setup_file_bin"
|
||||
echo -ne " Copy:"
|
||||
sudo cp "$PWD$set_bin_uri" \
|
||||
"$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo -ne " Owner $setup_user:"
|
||||
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo -ne " Copy:"
|
||||
sudo cp -f "$PWD$set_bin_uri" \
|
||||
"$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
sudo chmod 755 "$set_bin_uri"
|
||||
|
||||
echo -e "\n# Thank you for installing upd. Have fun !"
|
||||
|
|
|
@ -64,12 +64,14 @@ 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} \
|
||||
&& upd__show "$upd_file_check"
|
||||
|
||||
# archlinux aur
|
||||
upd_nbr_aur=0
|
||||
if [[ "$aur" == "yay" ]];then
|
||||
C_NBR_aur=${C_Green}
|
||||
upd_nbr_aur=`cat "$upd_file_check_aur" | wc -l`
|
||||
|
|
|
@ -70,7 +70,10 @@ do
|
|||
echo -ne " Owner $setup_user:"
|
||||
sudo chown -R "$setup_user":"$setup_user" "$setup_folder" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
&& setup__check_err
|
||||
sudp cp -rf "$setup_folder" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
done
|
||||
echo "- Folder: $setup_dir_bin"
|
||||
echo -ne " Created:"
|
||||
|
@ -78,15 +81,15 @@ sudo mkdir -p "$setup_dir_bin" \
|
|||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo "- File: $setup_file_bin"
|
||||
echo -ne " Copy:"
|
||||
sudo cp "$PWD$set_bin_uri" \
|
||||
"$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo -ne " Owner $setup_user:"
|
||||
sudo chown "$setup_user":"$setup_user" "$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
echo -ne " Copy:"
|
||||
sudo cp -f "$PWD$set_bin_uri" \
|
||||
"$set_bin_uri" \
|
||||
&& cmd_res="$?" \
|
||||
&& setup__check_err
|
||||
sudo chmod 755 "$set_bin_uri"
|
||||
|
||||
echo -e "\n# Thank you for installing upd. Have fun !"
|
||||
|
|
Loading…
Reference in New Issue