Removes question marks from functions and update minor bash bugs

This commit is contained in:
Bruno Tavares
2015-05-23 23:39:39 -03:00
parent eb501d3b93
commit 421148456f
8 changed files with 31 additions and 31 deletions

View File

@ -1,15 +1,15 @@
# kickstart.debugging?
# kickstart.debugging
Returns 0 if you are debugging, and 1 if not
### Example
```bash
$ kickstart.debugging? || echo nope
$ kickstart.debugging || echo nope
nope
$ set -x; kickstart.debugging? && echo yup; set +x;
+ kickstart.debugging?
$ set -x; kickstart.debugging && echo yup; set +x;
+ kickstart.debugging
+ grep xtrace
+ kickstart.stream.contains on
+ grep -q on

View File

@ -1,16 +0,0 @@
# kickstart.user.homeFolder user
Looks up the `user` home folder on the `/etc/passwd` file.
### Example
```bash
$ kickstart.user.homeFolder vagrant
/home/vagrant
$ kickstart.user.homeFolder root
/root
$ kickstart.user.homeFolder no-user-existing
```

View File

@ -0,0 +1,16 @@
# kickstart.user.home_folder user
Looks up the `user` home folder on the `/etc/passwd` file.
### Example
```bash
$ kickstart.user.home_folder vagrant
/home/vagrant
$ kickstart.user.home_folder root
/root
$ kickstart.user.home_folder no-user-existing
```

View File

@ -1,4 +1,4 @@
# kickstart.user.root?
# kickstart.user.is_root
Return 0 if the user running is root and 1 if not.
@ -8,6 +8,6 @@ Return 0 if the user running is root and 1 if not.
```bash
$ whoami
root
$ kickstart.user.root? && echo yup
$ kickstart.user.is_root && echo yup
yup
```