Skip to content

Commit e929e88

Browse files
committed
Consolidates install further
1 parent be86dc9 commit e929e88

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

build-ffmpeg

Lines 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)