Follow styleguide
This commit is contained in:
parent
dfa108fe19
commit
daf888829f
|
@ -139,7 +139,7 @@ installPackage() {
|
||||||
|
|
||||||
checkForParu() {
|
checkForParu() {
|
||||||
commOutput=$(runInChroot "command -v paru > /dev/null 2>&1 || echo 1")
|
commOutput=$(runInChroot "command -v paru > /dev/null 2>&1 || echo 1")
|
||||||
if [ "$commOutput" = "1" ] && [ "${1}" = "N" ]; then
|
if [ "$commOutput" = "1" ]; then
|
||||||
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
runInChroot "sed -i 's/# %wheel ALL=(ALL) NOPASSWD: ALL/%wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru-bin" > /dev/null 2>&1
|
runInChroot "cd /tmp; sudo -u $username git clone https://aur.archlinux.org/paru-bin.git; cd paru-bin; sudo -u $username makepkg -si --noconfirm; cd ..; rm -rf paru-bin" > /dev/null 2>&1
|
||||||
runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
runInChroot "sed -i 's/%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /etc/sudoers"
|
||||||
|
@ -326,16 +326,13 @@ runScript() {
|
||||||
debugFlag=false
|
debugFlag=false
|
||||||
while getopts ':hd' flag; do
|
while getopts ':hd' flag; do
|
||||||
case $flag in
|
case $flag in
|
||||||
h) printf "usage: ${0##*/} [command]\n\t-h\tPrint this help message.\n\t-d\tDebug.\n"
|
h) printf "usage: ${0##*/} [command]\n\t-h\tPrint this help message.\n\t-d\tDebug.\n" && exit 0 ;;
|
||||||
exit 0 ;;
|
|
||||||
d) debugFlag=true ;;
|
d) debugFlag=true ;;
|
||||||
?) printf '%s: invalid option -''%s'\\n "${0##*/}" "$OPTARG"
|
?) printf '%s: invalid option -''%s'\\n "${0##*/}" "$OPTARG" && exit 1 ;;
|
||||||
exit 1 ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
if [ -d "$HOME/Documents" ]; then
|
if [ -d "$HOME/Documents" ]; then
|
||||||
getDotfiles
|
getDotfiles
|
||||||
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
||||||
|
|
Loading…
Reference in New Issue