diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 02:51:58 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-04-06 02:51:58 +0000 |
commit | 9bfe108fb71b82926afb9f6dfad0cf02f6be998f (patch) | |
tree | 7e906fa0c149026309c1864ee4474ea5a618e246 /trunk/src | |
parent | f2e787d1b2ae12da9d3de564b62c8d6d9d1a0677 (diff) | |
download | simplepkg-9bfe108fb71b82926afb9f6dfad0cf02f6be998f.tar.gz simplepkg-9bfe108fb71b82926afb9f6dfad0cf02f6be998f.tar.bz2 |
function slash changed to common.sh
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@284 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/src')
-rwxr-xr-x | trunk/src/lspkg | 2 | ||||
-rwxr-xr-x | trunk/src/templatepkg | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/trunk/src/lspkg b/trunk/src/lspkg index 52b808a..74ed684 100755 --- a/trunk/src/lspkg +++ b/trunk/src/lspkg @@ -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 diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index aba8385..96c1d70 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -665,13 +665,6 @@ function setroot { } -function slash { - - # remove additional slashes - echo $1 | sed -e 's/\/\+/\//g' - -} - # ----------------------------------------------------- # main # ----------------------------------------------------- |