Skip to content

Commit 242844c

Browse files
committed
Add condition for .yml extensions
Signed-off-by: OsamaRab3 <osrab3@gmail.com>
1 parent 689c241 commit 242844c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fablo.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ getStoredConfigSnapshotPath() {
4949
echo "$FABLO_TARGET/fablo-config.json"
5050
elif [ -f "$FABLO_TARGET/fablo-config.yaml" ]; then
5151
echo "$FABLO_TARGET/fablo-config.yaml"
52+
elif [ -f "$FABLO_TARGET/fablo-config.yml" ]; then
53+
echo "$FABLO_TARGET/fablo-config.yml"
5254
else
5355
echo ""
5456
fi
@@ -68,7 +70,7 @@ verifyConfigMatchesOrFail() {
6870
echo "No stored config snapshot found in '$FABLO_TARGET'. Storing current config snapshot for future comparisons."
6971

7072
local ext="${current_config##*.}"
71-
if [ "$ext" = "json" ] || [ "$ext" = "yaml" ] ; then
73+
if [ "$ext" = "json" ] || [ "$ext" = "yaml" ] || [ "$ext" = "yml" ] ; then
7274
snapshotFabloConfigToTarget "$current_config" "$FABLO_TARGET"
7375
else
7476
echo "Error: Unsupported config file extension '.$ext'. Supported extensions are: .json, .yaml"

0 commit comments

Comments
 (0)