Skip to content

Commit

Permalink
updated exception and output consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad-israr committed Mar 28, 2021
1 parent 9ec41d8 commit fc34e66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/installer/windows/installer/fgit/fgit.cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
cd "C:\Users\Public\fgit"
cd "%programfiles%\fgit"
fgit.exe %1
6 changes: 3 additions & 3 deletions cli/src/main/java/dev/fgit/fgit.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public static Process process_runner(Path directory, String... command)throws IO


public static String gobbleStream(Process p) throws IOException, InterruptedException{
StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), "E");
StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), "O");
StreamGobbler errorGobbler = new StreamGobbler(p.getErrorStream(), ">> "); //For Error Stream
StreamGobbler outputGobbler = new StreamGobbler(p.getInputStream(), " "); // For Output Stream
outputGobbler.start();
errorGobbler.start();
int exit = p.waitFor();
Expand Down Expand Up @@ -192,7 +192,7 @@ public void run() {
String line;

while ((line = br.readLine()) != null) {
System.out.println(type + "> " + line);
System.out.println(type + line);
exec_result+=line;
}
} catch (IOException ioe) {
Expand Down

0 comments on commit fc34e66

Please sign in to comment.