]> gitweb.fluxo.info Git - trashman.git/commitdiff
Pass LIB to actions
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2018 13:32:12 +0000 (10:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 7 Apr 2018 13:32:12 +0000 (10:32 -0300)
share/hoarder/mps-youtube/unix/linux/debian/install
share/hoarder/rainbowstream/unix/linux/debian/install
trashman

index fd01badf13570282964f9af31cfa9f40ef4b21ae..c8e22adf29ed98fde1435d40aaf49981f2814a0c 100755 (executable)
@@ -5,10 +5,11 @@
 
 # Parameters
 SHARE="$1"
+LIB="$2"
 
 # Include basic functions
-. $SHARE/trashman/functions || exit 1
-. $SHARE/trashman/debian    || exit 1
+. $LIB/trashman/functions || exit 1
+. $LIB/trashman/debian    || exit 1
 
 # Requirements
 trashman_apt_install_packages python3-pip mpv
index eb9d8882c7e6be493c9d72bf062682169df33bfd..1c7214808a401f9cd5f1f0f82ca6aa937dfc517e 100755 (executable)
@@ -5,10 +5,11 @@
 
 # Parameters
 SHARE="$1"
+LIB="$2"
 
 # Include basic functions
-. $SHARE/trashman/functions || exit 1
-. $SHARE/trashman/debian    || exit 1
+. $LIB/trashman/functions || exit 1
+. $LIB/trashman/debian    || exit 1
 
 # Requirements
 trashman_apt_install_packages python-pip python-dev libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
index c8e8129fa94fc983cd78cc137e40907483b85847..b38a410e6cbe0740cec9ce3afae6d49ab0244d82 100755 (executable)
--- a/trashman
+++ b/trashman
@@ -93,7 +93,7 @@ else
           fi
 
           # Run action for package
-          $SHARE/$package/$folder/$ACTION $SHARE
+          $SHARE/$package/$folder/$ACTION $SHARE $LIB
           trashman_check_exit_status $ACTION $?
         else
           trashman_echo "No such action $ACTION for package $package, skipping"