]> gitweb.fluxo.info Git - stowpkg.git/commitdiff
Utility functions: ls and location
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 00:21:59 +0000 (21:21 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 22 Sep 2017 00:21:59 +0000 (21:21 -0300)
stowpkg

diff --git a/stowpkg b/stowpkg
index 6ad0bd519fb788ece3e1ef3a3a7130c37e446a06..9bcdbe51003aaea45188faf6ea71062ab6d706fb 100755 (executable)
--- a/stowpkg
+++ b/stowpkg
@@ -272,6 +272,14 @@ stowpkg_sources () {
   ls -1 $SOURCES
 }
 
+stowpkg_ls () {
+  ( cd $BASE && ls $* )
+}
+
+stowpkg_location () {
+  echo $BASE
+}
+
 stowpkg_switch () {
   local package="$1"
   local version="$2"