aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-09-21 21:21:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-09-21 21:21:59 -0300
commita30ca03696de1d32006752ff62d1eeecf93ed91f (patch)
treee0462121de3487058e49e9a323dad001f7b3fc64
parent214a0e75d3702b2036a6ba6dce45cf2df5412649 (diff)
downloadstowpkg-a30ca03696de1d32006752ff62d1eeecf93ed91f.tar.gz
stowpkg-a30ca03696de1d32006752ff62d1eeecf93ed91f.tar.bz2
Utility functions: ls and location
-rwxr-xr-xstowpkg8
1 files changed, 8 insertions, 0 deletions
diff --git a/stowpkg b/stowpkg
index 6ad0bd5..9bcdbe5 100755
--- 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"