Running ./lightson+.sh 120 yields Ivalid argument. See -h, --help for more information. This is due to the missing -d parameter, which is required if the user wants to set the delay time.
Typo: Ivalid
The script shouldn't need the .sh extension. According to Google Shell Style Guide: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must have a .sh extension and should not be executable." Removing the .sh extension will make filenames look cleaner while still functioning normally as executables. Anyway, this comes down to personal preferences though.
./lightson+.sh 120
yieldsIvalid argument. See -h, --help for more information
. This is due to the missing-d
parameter, which is required if the user wants to set the delay time.Ivalid
.sh
extension. According to Google Shell Style Guide: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must have a .sh extension and should not be executable." Removing the.sh
extension will make filenames look cleaner while still functioning normally as executables. Anyway, this comes down to personal preferences though.