From d21710c65cc642bc20866db2cebf91ea67a38617 Mon Sep 17 00:00:00 2001 From: Saqib Shaikh Date: Sun, 26 Apr 2015 12:02:48 +0100 Subject: [PATCH 1/2] Bash won't run without the etc directory present; updating the installer to create it. --- setup/Gow.nsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/Gow.nsi b/setup/Gow.nsi index 8902fc5e..27240377 100644 --- a/setup/Gow.nsi +++ b/setup/Gow.nsi @@ -129,6 +129,9 @@ Function Files ; Setup files SetOutPath "$INSTDIR\setup" File /r "${SRC_DIR}\setup\*.vbs" + + ; Bash requires the etc directory to be present. + CreateDirectory "$INSTDIR\etc" FunctionEnd ; Starts the installation From e1004d79ccf3f9d2808c53c8846091183c81e7b5 Mon Sep 17 00:00:00 2001 From: Saqib Shaikh Date: Sun, 26 Apr 2015 12:33:57 +0100 Subject: [PATCH 2/2] Adding default Bash configuration to set user's home directory, and load user-specific settings. --- .bashrc | 5 +++++ setup/Gow.nsi | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .bashrc diff --git a/.bashrc b/.bashrc new file mode 100644 index 00000000..16b0dd18 --- /dev/null +++ b/.bashrc @@ -0,0 +1,5 @@ +export HOME=$(echo "/$USERPROFILE" | sed -e 's/\\/\//g' -e 's/://') +if [ -e ~/.bashrc ] +then + source ~/.bashrc +fi diff --git a/setup/Gow.nsi b/setup/Gow.nsi index 27240377..99788966 100644 --- a/setup/Gow.nsi +++ b/setup/Gow.nsi @@ -132,6 +132,10 @@ Function Files ; Bash requires the etc directory to be present. CreateDirectory "$INSTDIR\etc" + + ; Default Bash configuration to set user's home directory, and load user-specific settings. + SetOutPath "$INSTDIR" + File "${SRC_DIR}\.bashrc" FunctionEnd ; Starts the installation