# Github Push Fails - Export Directory Too Long?

**URL:** https://forum.bootstrapstudio.io/t/github-push-fails-export-directory-too-long/9894
**Category:** Bug Reports
**Created:** [January 26, 2023, 5:10pm UTC](https://forum.bootstrapstudio.io/t/github-push-fails-export-directory-too-long/9894 "2023-01-26T17:10:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ForTheKirk](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/f/9de053/32.png) [@ForTheKirk](https://forum.bootstrapstudio.io/u/ForTheKirk)
#### Post date: [January 26, 2023, 5:10pm UTC](https://forum.bootstrapstudio.io/t/github-push-fails-export-directory-too-long/9894/1 "2023-01-26T17:10:09Z")

</div>

I just set up a GitHub repository for a very simple one-page design created in Bootstrap Studio. I’m new to pushing stuff via Git. I followed this guide:

> **[Exporting to GitHub Pages | Bootstrap Studio](https://bootstrapstudio.io/docs/github-pages.html)**
>
> Tutorials and Guides about Bootstrap Studio, the revolutionary web design tool.

I created the script and set it up to execute. When I export the site, the pages are created in the directory. But when the git script runs, it fails on line 3 (“cd $1” where “1” is the export directory) with the error:

```auto
Thu Jan 26 2023 10:52:47 GMT-0600 (Central Standard Time)

/home/name/Nextcloud Instances/Nextcloud - NAME REDACTED/NAME REDACTED Web Designs/Scripts - Bootstrap Studio/exportpush.sh: line 3: cd: too many arguments

```

If I navigate to the directory in question and execute the commands in the script it works fine. This makes me wonder if there is a bug where Bootstrap Studio might not be passing this long path correctly to the script directory variable. Can someone help me with this?

---

<div class="post-metadata">

### Author: ![richards](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/richards/32/3163_2.png) [@richards](https://forum.bootstrapstudio.io/u/richards)
#### Post date: [January 26, 2023, 8:27pm UTC](https://forum.bootstrapstudio.io/t/github-push-fails-export-directory-too-long/9894/2 "2023-01-26T20:27:25Z")

</div>

If could be the spaces in the pathname,

So its breaking it into multiple arguments, something like:

1. /home/name/Nextcloud
2. Instances/Nextcloud
3. \_
4. NAME
5. REDACTED/NAME
6. REDACTED
7. Web
8. Designs/Scripts

You could try creating an export folder on the top level of your drive to export to and see if that makes any difference

---

<div class="post-metadata">

### Author: ![ForTheKirk](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/f/9de053/32.png) [@ForTheKirk](https://forum.bootstrapstudio.io/u/ForTheKirk)
#### Post date: [January 26, 2023, 9:10pm UTC](https://forum.bootstrapstudio.io/t/github-push-fails-export-directory-too-long/9894/3 "2023-01-26T21:10:25Z")

</div>

Interesting. BS still tells me that the script ended with an error:

Export Script “/home/name/Documents/ExportRepos/exportpush.sh” resulted in one or more errors  
To [github.com](http://github.com):unknownuserisknown/name-web.git  
ea5bf4a…fd73b64 main → main

But I can refresh the page and see that the changes were processed. If there was an error, where would it be logged?
