We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98ca8d commit 51bc474Copy full SHA for 51bc474
1 file changed
emby_config_editor.sh
@@ -318,7 +318,11 @@ if [ ! -d "${config_dir}" ]; then
318
mkdir -p "${config_dir}"
319
fi
320
321
-find "${config_dir}" -type f -name "*.txt" -exec sed -i "s/\r$//g" {} \;
+if [[ "$(uname -s)" == "Darwin" ]]; then
322
+ find "${config_dir}" -type f -name "*.txt" -exec sed -i '' "s/\r$//g" {} \;
323
+else
324
+ find "${config_dir}" -type f -name "*.txt" -exec sed -i "s/\r$//g" {} \;
325
+fi
326
327
if [ ! -s "${config_dir}/emby_config.txt" ]; then
328
{
0 commit comments