Code Monkey home page Code Monkey logo

Comments (4)

linuxgurugamer avatar linuxgurugamer commented on August 20, 2024

Please post on the forum and not here, this is not a support site.

You also didn't give any other information, so it's rather hard to know whats going on

from sxtcontinued.

Ruedii avatar Ruedii commented on August 20, 2024

I'm sorry if I was not clear. I'm not seeking support. I'm reporting that the bash script is broken. It's reporting syntax errors from bash which is a bug.

Most notable are the two syntax errors:

./BashCopyTextures.sh: line 17: [: too many arguments
./BashCopyTextures.sh: line 18: cd: too many arguments

There is no way that a script giving these errors would be a system specific issue, or a need for support.

This is the script you run to copy the files.
Have you tested the script? I gave you the logs, there are obviously syntax errors in the script file.
I executed it as the readme instruction files.
While in GameData/SXT I execute the script with "bash BashCopyTextures.sh"

All relevant information:
GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)

The KSP version is latest installed from Steam
SXT was installed via CKAN.

Only the bash version could be responsible for any syntax errors.
The output of BASH is in the first post.

from sxtcontinued.

linuxgurugamer avatar linuxgurugamer commented on August 20, 2024

Yes, I did test it using Cygwin.

Is the command "dirname" installed on your system? If not, it won't work, that line needs that command.

What kind of OS do you have installed? and how is it installed (ie: if you remember, what options did you use to install it)?

What's the default shell that is running the script? It's a bash script, I don't know if it will work using any other shell.

If you aren't sure, then add the following line near the top of the script (after the "clear" line) and let me know:

echo $SHELL

from sxtcontinued.

Ruedii avatar Ruedii commented on August 20, 2024

I gave you the log, it is clear that "dirname" is executing properly.

According to the two lines there are spaces in the shell script where there shouldn't be. This is what "too many arguments" means.

The errors are on the "[" function and the "cd"

I have no clue why you are using a complex function in the line with the "[" function.

There are also several other places where there are simpler, more fault-tolerant, ways to do things.

from sxtcontinued.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.