Last active
March 23, 2020 14:42
-
-
Save hr3lxphr6j/1d7e9da4e5999797c34621f2becec0ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PYTHON=python.exe | |
SCRIPT=${1:-'C:\Users\chigusa\AppData\Local\Programs\VapourSynth\vsrepo\vsrepo.py'} | |
WIN_PACKAGE_JSON="$($PYTHON "$SCRIPT" paths | grep Definitions | awk '{print $2}' | tr -d '\r\n')" | |
PACKAGE_JSON="$(wslpath "$WIN_PACKAGE_JSON" | awk '{$1=$1;print}')" | |
oldifs=$IFS | |
IFS=$'\n' | |
$PYTHON $SCRIPT update | |
for f in $(cat $PACKAGE_JSON | jq -r '.packages[].name'); do | |
echo "Install $f..." | |
$PYTHON $SCRIPT install "$f" | |
done | |
IFS=$oldifs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment