Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#3927 closed defect (invalid)

update-workspaces script results in errors

Reported by: Imarok Owned by:
Priority: Should Have Milestone:
Component: Build & Packages Keywords:
Cc: Patch:

Description

I'm using Ubuntu 15.10 I installed all dependencies. I downloaded the svn once on windows and want to use the same now on Linux. ./update-workspaces.sh results in: bash: ./update-workspaces.sh: /bin/sh^M: damaged interpreter: file or directory not found

bash update-workspaces.sh results in:

update-workspaces.sh: line 2: $'\r': command not found
update-workspaces.sh: line 8: Syntax error: word unexpecte »$'\r'«
'pdate-workspaces.sh: line 8: `die()

and sh update-workspaces.sh results in:

: not foundspaces.sh: 2: update-workspaces.sh: 
update-workspaces.sh: 19: update-workspaces.sh: Syntax error: word unexpected (expecting "in")

(I translated the errors to English)

Change History (4)

comment:1 by Andy Alt, 8 years ago

@Imarok, did you copy the svn repo from your Windows partition, or download it after you were booted into Ubuntu?

If a ^M was added to the first line, that indicates to me the formatting of the workspace update script was changed somehow.

/bin/sh typically is a symlink to the systems default shell (i.e. bash, dash). If that were actually corrupt, you wouldn't have been able to boot Ubuntu. I think it's looking for /bin/shM which doesn't exist.

Last edited 8 years ago by Andy Alt (previous) (diff)

comment:2 by Imarok, 8 years ago

The main problem was using a ntfs partition, because of the lack of permission control.

comment:3 by Imarok, 8 years ago

Milestone: Backlog
Resolution: invalid
Status: newclosed

comment:4 by Stan, 7 years ago

Just for the record see today's IRC's conversation.

<Stan`> Imarok, I had that error
<Stan`> it's stupid
<Stan`> that's because windows use other file endings
<Stan`> just use dos2unix
<Stan`> on the sh files
<Stan`> and voilà :D
Note: See TracTickets for help on using tickets.