Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e929e88

Browse filesBrowse files
committed
Consolidates install further
1 parent be86dc9 commit e929e88
Copy full SHA for e929e88

File tree

Expand file treeCollapse file tree

1 file changed

+10
-20
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-20
lines changed

‎build-ffmpeg

Copy file name to clipboardExpand all lines: build-ffmpeg
+10-20Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -991,26 +991,16 @@ fi
991991

992992
if [ "$INSTALL_NOW" = 1 ]; then
993993
if command_exists "sudo" && [[ $INSTALL_FOLDER == /usr* ]]; then
994-
sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/bin/ffmpeg"
995-
sudo cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/bin/ffprobe"
996-
sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/bin/ffplay"
997-
if [ $MANPAGES = 1 ]; then
998-
sudo mkdir -p "$INSTALL_FOLDER/share/man/man1"
999-
sudo cp "$WORKSPACE/share/man/man1"/ff* "$INSTALL_FOLDER/share/man/man1"
1000-
if command_exists "mandb"; then
1001-
sudo mandb -q
1002-
fi
1003-
fi
1004-
else
1005-
cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/bin/ffmpeg"
1006-
cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/bin/ffprobe"
1007-
cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/bin/ffplay"
1008-
if [ $MANPAGES = 1 ]; then
1009-
mkdir -p "$INSTALL_FOLDER/share/man/man1"
1010-
cp "$WORKSPACE/share/man/man1"/ff* "$INSTALL_FOLDER/share/man/man1"
1011-
if command_exists "mandb"; then
1012-
mandb -q
1013-
fi
994+
SUDO=sudo
995+
fi
996+
$SUDO cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/bin/ffmpeg"
997+
$SUDO cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/bin/ffprobe"
998+
$SUDO cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/bin/ffplay"
999+
if [ $MANPAGES = 1 ]; then
1000+
$SUDO mkdir -p "$INSTALL_FOLDER/share/man/man1"
1001+
$SUDO cp "$WORKSPACE/share/man/man1"/ff* "$INSTALL_FOLDER/share/man/man1"
1002+
if command_exists "mandb"; then
1003+
$SUDO mandb -q
10141004
fi
10151005
fi
10161006
echo "Done. FFmpeg is now installed to your system."

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.