Syntax error near unexpected token `{workingDir=$(pwd)'why syntax error near unexpected token ' fi 'Syntax...
The use of multiple foreign keys on same column in SQL Server
What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)
LaTeX closing $ signs makes cursor jump
Can divisibility rules for digits be generalized to sum of digits
What defenses are there against being summoned by the Gate spell?
How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?
How to find program name(s) of an installed package?
"You are your self first supporter", a more proper way to say it
Email Account under attack (really) - anything I can do?
Mathematical cryptic clues
Is it important to consider tone, melody, and musical form while writing a song?
How do I create uniquely male characters?
Which models of the Boeing 737 are still in production?
Why, historically, did Gödel think CH was false?
How to write a macro that is braces sensitive?
Do I have a twin with permutated remainders?
can i play a electric guitar through a bass amp?
Can a Warlock become Neutral Good?
What do you call a Matrix-like slowdown and camera movement effect?
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
How old can references or sources in a thesis be?
How much RAM could one put in a typical 80386 setup?
Fencing style for blades that can attack from a distance
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Syntax error near unexpected token `{workingDir=$(pwd)'
why syntax error near unexpected token ' fi 'Syntax error near unexpected token `('-bash: syntax error near unexpected token `&'Bash : Syntax error near unexpected token '('Compiling: ./configure: syntax error near unexpected tokenbash :syntax error near unexpected token `('bash: syntax error near unexpected token '<'syntax error near unexpected token `Geant4'bash: syntax error near unexpected token `do'Bash script: syntax error near unexpected token `('
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Here is the problematic line in question.
function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}
Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR
is a valid directory, and if I execute cd $GRADE_DIR
in the Terminal, it works fine.
Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.
command-line bash syntax
New contributor
add a comment |
Here is the problematic line in question.
function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}
Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR
is a valid directory, and if I execute cd $GRADE_DIR
in the Terminal, it works fine.
Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.
command-line bash syntax
New contributor
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
1
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago
add a comment |
Here is the problematic line in question.
function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}
Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR
is a valid directory, and if I execute cd $GRADE_DIR
in the Terminal, it works fine.
Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.
command-line bash syntax
New contributor
Here is the problematic line in question.
function gradeUpdate() {workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir}
Of course, [redacted] in this case is the username of the repository owner. I can guarantee that $GRADE_DIR
is a valid directory, and if I execute cd $GRADE_DIR
in the Terminal, it works fine.
Also, if I enter all of the contents of the function (not the function itself) into the Terminal, then it works fine.
command-line bash syntax
command-line bash syntax
New contributor
New contributor
New contributor
asked 19 mins ago
Gigi Bayte 2Gigi Bayte 2
11
11
New contributor
New contributor
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
1
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago
add a comment |
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
1
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
1
1
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131758%2fsyntax-error-near-unexpected-token-workingdir-pwd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
Gigi Bayte 2 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131758%2fsyntax-error-near-unexpected-token-workingdir-pwd%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
function gradeUpdate() { workingDir=$(pwd); cd $GRADE_DIR; rm -Rf gradingScript/; git clone https://github.com/[redacted]/gradingScript/; cd $workingDir; }
– Ravexina
17 mins ago
1
Space between curly braces and semicolon after last command ...
– Ravexina
16 mins ago