abctaylor / nextcloud-mov-2-mp4

An automatic script to convert mov files to mp4, re-index the Nextcloud database and clean up afterwards
MIT License
13 stars 5 forks source link

grep issue #1

Open RomanYankovsky opened 4 years ago

RomanYankovsky commented 4 years ago

That's what I get when I try to run mov-2-mp4.sh:

$ sudo ./mov-2-mp4.sh
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

How can I fix this?

My settings:

# Variables
root_folder="/data/nextcloud/"                                     # Where to scan
installation_path="/var/www/html"                                  # Full path where nextcloud is installed, must not end with '/'
old_extension=".mov"                                               # e.g. ".mov"
new_extension=".mp4"                                               # e.g. ".mp4"
safe_mode=true                                                     # true = rename file to .mov-old, false = permanently delete old .mov file
ignoregrep=""                                                      # Ignore stderr messages from find that match this grep (e.g. 'Permission denied' for some folder name)
instance_id=$(openssl rand -hex 4)
append_extension=-wip-$instance_id
RomanYankovsky commented 4 years ago
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic
Flegma commented 4 years ago

I have the same issue on my Ubuntu 18.04 server. Anyone solved it yet?

JDC8077 commented 4 years ago

Same here, using same for AVI instead of MOV. Noticed in the folder there were some residual files with extension "avi-wip-something" which seem to be previous temp files. Deleted and all good.