nextcloud-gmbh / mtime_fixer_tool_kit

Tool kit to fix the mtime issue on the server state
15 stars 7 forks source link

Syntax error in script (line 31) #38

Open racer2220 opened 1 year ago

racer2220 commented 1 year ago

Hello,

When creating an executable script (solvable_files.sh) it appears to be a syntax errro in line 31 (see screenshot) Is this known an how can I fix it? The code has been copy pasted from github. (line 31 should be: function correct_mtime() {

Greetings grafik grafik

artonge commented 1 year ago

The script should work with bash. You are using sh.

ColiZei commented 1 year ago

I have an error to. In my case

./solvable_files.sh: line 171: syntax error near unexpected token `then'
$ echo $SHELL
/bin/bash

Any help? Thanks!