Skip to content

Commit

Permalink
Merge pull request #15 from RainbowHackerHorse/bugfix/globcheck-for-l…
Browse files Browse the repository at this point in the history
…sb_release

Add vzvol_existondisk, and fix the pkgcheck for lsb_release
  • Loading branch information
RainbowHackerHorse authored Dec 30, 2017
2 parents a9f3c7d + a70b433 commit 042995f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/linux/vzvol_pkgcheck.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
vzvol_pkg_check_linux(){
ls /usr/bin | grep -q lsb_release
if [ $? = 0 ]; then
if [ -e /usr/bin/lsb_release ]; then
vzvol_pkg_lsb
else
vzvol_pkg_distrocheck
Expand Down
4 changes: 4 additions & 0 deletions lib/shared/vzvol_existondisk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
vzvol_existondisk() {
eval set -- "$1"; [ -e "$1" ];
}

0 comments on commit 042995f

Please sign in to comment.