diff --git a/Windows-Scripts/waypoint.ps1 b/Windows-Scripts/waypoint.ps1 index 6c522cd..3fbc9ba 100644 --- a/Windows-Scripts/waypoint.ps1 +++ b/Windows-Scripts/waypoint.ps1 @@ -1,2 +1,9 @@ +if ($args[0]) { $commit_message=($args -join " ") } # if arg0 exists, join all passed args with spaces +else { $commit_message="waypoint" } # or default to "waypoint" + +Write-Host "WAYPOINT!`n`tCommit Message: $commit_message`n" +# add and commit git add . -git commit -m "waypoint" \ No newline at end of file +git commit -m "$commit_message" + +Write-Host "Done :`"3" \ No newline at end of file