General Enhancements #4
@@ -169,7 +169,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        unset OPTIND
 | 
					        unset OPTIND
 | 
				
			||||||
        unset accept
 | 
					        unset accept
 | 
				
			||||||
        unset goodbye
 | 
					        unset shutdown
 | 
				
			||||||
        unset only_sys
 | 
					        unset only_sys
 | 
				
			||||||
        unset only_flat
 | 
					        unset only_flat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -178,7 +178,7 @@
 | 
				
			|||||||
              h) echo -e "$usage"
 | 
					              h) echo -e "$usage"
 | 
				
			||||||
                return 0 ;;
 | 
					                return 0 ;;
 | 
				
			||||||
              y) accept="-y" ;;
 | 
					              y) accept="-y" ;;
 | 
				
			||||||
              g) goodbye="Y" ;;
 | 
					              g) shutdown="Y" ;;
 | 
				
			||||||
              s) only_sys="Y" ;;
 | 
					              s) only_sys="Y" ;;
 | 
				
			||||||
              f) only_flat="Y" ;;
 | 
					              f) only_flat="Y" ;;
 | 
				
			||||||
              *) echo "ERROR: -$OPTARG is not a recognized option." >&2
 | 
					              *) echo "ERROR: -$OPTARG is not a recognized option." >&2
 | 
				
			||||||
@@ -193,7 +193,7 @@
 | 
				
			|||||||
          {{ update_package_manager }}
 | 
					          {{ update_package_manager }}
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if [[ "$goodbye" == "Y" && "{{ battery }}" == "True" ]]; then
 | 
					        if [[ "$shutdown" == "Y" && "{{ battery }}" == "True" ]]; then
 | 
				
			||||||
          echo -e "\n*** Only System Updates - Skipping Flatpak ***\n\n"
 | 
					          echo -e "\n*** Only System Updates - Skipping Flatpak ***\n\n"
 | 
				
			||||||
        elif [[ "$only_sys" == "Y" ]]; then
 | 
					        elif [[ "$only_sys" == "Y" ]]; then
 | 
				
			||||||
          echo -e "\n*** Manually Skipping Flatpak ***\n\n"
 | 
					          echo -e "\n*** Manually Skipping Flatpak ***\n\n"
 | 
				
			||||||
@@ -203,7 +203,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        echo "*** Completed Successfully ***"
 | 
					        echo "*** Completed Successfully ***"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if [[ $goodbye == "Y" ]]; then
 | 
					        if [[ $shutdown == "Y" ]]; then
 | 
				
			||||||
          shopt -s expand_aliases
 | 
					          shopt -s expand_aliases
 | 
				
			||||||
          bye
 | 
					          bye
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
@@ -253,8 +253,12 @@
 | 
				
			|||||||
      '
 | 
					      '
 | 
				
			||||||
      alias init-prog=init-program
 | 
					      alias init-prog=init-program
 | 
				
			||||||
    bye_aliases: |
 | 
					    bye_aliases: |
 | 
				
			||||||
      alias bye="{{ shutdown_command }}"
 | 
					      function bye {
 | 
				
			||||||
      alias goodbye="update -ysg"
 | 
					        {{ shutdown_command }}
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      function goodbye {
 | 
				
			||||||
 | 
					        update -ysg
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    metasploit_aliases: |
 | 
					    metasploit_aliases: |
 | 
				
			||||||
      alias metasploit="msfconsole"
 | 
					      alias metasploit="msfconsole"
 | 
				
			||||||
      alias hax="metasploit"
 | 
					      alias hax="metasploit"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user