Fix publishing not working.
This commit is contained in:
parent
821fca68d9
commit
7ce24d937c
@ -36,16 +36,15 @@ remove_file() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# -ne 2 ]; then
|
if [ "$1" = "pub" ]; then
|
||||||
|
publish
|
||||||
|
exit 0
|
||||||
|
elif [ $# -ne 2 ]; then
|
||||||
echo "You need to provide action and file name."
|
echo "You need to provide action and file name."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
pub)
|
|
||||||
publish "$2"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
edit)
|
edit)
|
||||||
open_file "$2"
|
open_file "$2"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user