[GH-ISSUE #46] M.2 warning displays escape code instead of using yellow color #187

Closed
opened 2026-03-11 03:01:46 +03:00 by kerem · 2 comments
Owner

Originally created by @herbingk on GitHub (Jan 5, 2024).
Original GitHub issue: https://github.com/007revad/Synology_enable_Deduplication/issues/46

M.2 warning displays escape code instead of using yellow color. Occurs with the Synology_HDD_db script as well.

Seems like the -e param is missing from the echo statement:

echo "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!"

Sample output:

Synology_enable_Deduplication v1.2.15
DS1621+ DSM 7.2.1-69057-3
StorageManager 1.0.0-0017

Using options: -c
Running from: /volume1/admin/Synology_Enable_Dedupe/syno_enable_dedupe.sh
\e[0;33mWARNING\e[0m Don't store this script on an NVMe volume!

Thanks for loooking into it.

Originally created by @herbingk on GitHub (Jan 5, 2024). Original GitHub issue: https://github.com/007revad/Synology_enable_Deduplication/issues/46 M.2 warning displays escape code instead of using yellow color. Occurs with the Synology_HDD_db script as well. Seems like the -e param is missing from the echo statement: echo "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!" Sample output: Synology_enable_Deduplication v1.2.15 DS1621+ DSM 7.2.1-69057-3 StorageManager 1.0.0-0017 Using options: -c Running from: /volume1/admin/Synology_Enable_Dedupe/syno_enable_dedupe.sh \e[0;33mWARNING\e[0m Don't store this script on an NVMe volume! Thanks for loooking into it.
kerem closed this issue 2026-03-11 03:01:51 +03:00
Author
Owner

@007revad commented on GitHub (Jan 5, 2024):

Thanks.

I just checked and 5 of my scripts are missing the -e for that warning!

  • syno_hdd_db.sh
  • enable_m2_volume.sh
  • enable_dedupe.sh
  • syno_enable_m2_card.sh
  • syno_enable_eunit.sh
<!-- gh-comment-id:1879261780 --> @007revad commented on GitHub (Jan 5, 2024): Thanks. I just checked and 5 of my scripts are missing the -e for that warning! - syno_hdd_db.sh - enable_m2_volume.sh - enable_dedupe.sh - syno_enable_m2_card.sh - syno_enable_eunit.sh
Author
Owner

@007revad commented on GitHub (Jan 7, 2024):

Fixed in https://github.com/007revad/Synology_enable_Deduplication/releases/tag/v1.2.17

Thank you.

<!-- gh-comment-id:1879900630 --> @007revad commented on GitHub (Jan 7, 2024): Fixed in https://github.com/007revad/Synology_enable_Deduplication/releases/tag/v1.2.17 Thank you.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_enable_Deduplication#187
No description provided.