Skip to content

A collection of Utility Scripts for use in a Linux Environment

License

Notifications You must be signed in to change notification settings

Dillon-McCardell/Bash-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Utility Scripts

A collection of Utility Scripts for WSL or similar UNIX systems

Git_Scripts/gitCommitStatus.sh - A bash script that checks whether the current local branch is behind the main remote branch. This script is meant to be run within another script that implements the repo source code. For example, I call this script anytime I do a build of a project, allowing me to quickly see if a team member has pushed changes that may affect my build. While this script is meant for small teams, it can be used in any situation. Feel free to strip out anything within the script and use it how you wish.

  • If your local branch is behind the remote main, you will get a warning stating how many commits behind you are
  • If your local branch is matched OR ahead of the remote main, you will not receive output.
  • Example Output if your local is behind remote main: image

Wifi_Connection_Scripts/connectionStatus.sh - A simple bash utility script to return 1 if Internet is available, or 0 if it is not. Can be implemented by other scripts. Please see connectionStatusHeader.sh for a full featured connection script for use within WSL bash files.

Wifi_Connection_Scripts/connectionStatus.sh - Script to check if the current WSL instance has an Internet Connection. If there is no connection, this script will prompt the user for permission to overwrite their resolv.conf in an attempt to fix the problem.

CMake_Scripts/build.sh - My personal Utility script to easily automate the build process from the command line in WSL. This file should be made a symlink in your /bin directory so it can be called anywhere, however it will report an error if not used in the proper directory.

About

A collection of Utility Scripts for use in a Linux Environment

Topics

Resources

License

Stars

Watchers

Forks

Languages