]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
function slash changed to common.sh
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 02:51:58 +0000 (02:51 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 6 Apr 2007 02:51:58 +0000 (02:51 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@284 04377dda-e619-0410-9926-eae83683ac58

trunk/lib/common.sh
trunk/src/lspkg
trunk/src/templatepkg

index f66e9a7edadb6de10989c2282c90981ed3c1a259..af76cd1ba083b7fca83065b760bedae4a17fa6b3 100644 (file)
@@ -505,3 +505,10 @@ function set_jail_perms {
 
 }
 
+function slash {
+
+  # remove additional slashes
+  echo $1 | sed -e 's/\/\+/\//g'
+
+}
+
index 52b808a1618d83aefb1d414bca8726f0ba287cf5..74ed684e58fefd92e03c0cb1548094a9c4b8f5af 100755 (executable)
@@ -59,6 +59,8 @@ else
     LIST_PKGS=`ls /$ROOT/var/log/packages/ 2> /dev/null`
 fi
 
+LIST_PKGS="`slash $LIST_PKGS`"
+
 case $1 in
     "-h"|"--help")
         usage
index aba838526612957b39ec463e9418365626ffe427..96c1d704c22bc8ccbb31745f04a0b4816eaad091 100755 (executable)
@@ -665,13 +665,6 @@ function setroot {
 
 }
 
-function slash {
-
-  # remove additional slashes
-  echo $1 | sed -e 's/\/\+/\//g'
-
-}
-
 # -----------------------------------------------------
 #                       main
 # -----------------------------------------------------