Skip to content

Commit ace673e

Browse files
committed
improve installation
1 parent e95fdcc commit ace673e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ PHP_VERSION=`php -r "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;"`
1414
PHP_EXTENSION_DIR=`php -r "echo ini_get('extension_dir');"`
1515

1616
# download the extension file into the extension dir
17-
curl -o "${PHP_EXTENSION_DIR}/fs_notify.so" "https://github.com/genkgo/php-ext-fs-notify/releases/latest/download/linux-php${PHP_VERSION}-fs_notify.so"
17+
curl -L -o "${PHP_EXTENSION_DIR}/fs_notify.so" "https://github.com/genkgo/php-ext-fs-notify/releases/latest/download/linux-php${PHP_VERSION}-fs_notify.so"
1818

1919
# enable the extension
20-
echo 'extension=fs_notify.so' > /etc/php/${PHP_VERSION}/cli/conf.d/20-fs_notify.ini
20+
echo 'extension=fs_notify.so' | tee -a /etc/php/${PHP_VERSION}/cli/conf.d/20-fs_notify.ini > /dev/null
2121
```
2222

2323
## Usage

0 commit comments

Comments
 (0)