diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-08-07 18:54:49 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-08-07 18:54:49 (GMT) |
commit | 74a1b870a19d4c4eac719368e31100c799b013b7 (patch) | |
tree | 21dd19b69df555f1b8d7fd9568bd5fd4b13455cf /scripts/xinitrc | |
parent | 82a3c0e889de4974e49bdf5ce8f950ebcfdb201b (diff) |
Create config if it doesn't exist
Diffstat (limited to 'scripts/xinitrc')
-rw-r--r-- | scripts/xinitrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xinitrc b/scripts/xinitrc index fc0b266..cdf3268 100644 --- a/scripts/xinitrc +++ b/scripts/xinitrc @@ -9,7 +9,7 @@ ROOT_DIR=`dirname "$SCRIPTS_DIR"` if [ ! -z $SUGAR_PROFILE ]; then grep -q PROFILE $ROOT_DIR/config - if [ $? -eq 1 ]; then + if [ $? -ne 0 ]; then randomstring=`</dev/urandom tr -cd A-Za-z0-9 | head -c10` echo "PROFILE=$randomstring" >> $ROOT_DIR/config fi |