Commit | Line | Data |
---|---|---|
80f575fc DM |
1 | #!/bin/bash |
2 | ||
3 | PATHS="/usr/lib/transcode /usr/local/lib/transcode $HOME/lib/transcode" | |
4 | for D in $PATHS; do | |
5 | if [ -d "$D" ]; then | |
6 | echo -n "Do you want to install the plugins to $D ? [y/N] "; | |
7 | read choice | |
8 | if [ "$choice" = "y" ]; then | |
9 | echo "Checking PATH variable: " | |
10 | if [ ! -w "$D" ]; then SUDO=sudo; fi | |
11 | ${SUDO} cp --backup=numbered ./filter_stabilize.so ./filter_transform.so ./filter_deshake.so "$D/" | |
12 | fi | |
13 | fi | |
14 | done |