bin/scms in scms-4.0.2 vs bin/scms in scms-4.0.3
- old
+ new
@@ -101,9 +101,10 @@
# ScmsUtils.log "Destination dir = #{Folders[:destination]}"
# ScmsUtils.log "Config dir = #{Folders[:config]}"
# ScmsUtils.log "Mode = #{options[:mode]}"
raise "Invalid working directory! #{Folders[:website]}" if !File::directory?(Folders[:website])
+Dir.chdir Folders[:website]
if options[:create] != nil
puts "Creating scms website: #{options[:create]}"
newWorkingDir = File.join(Folders[:website], options[:create])
if File.exists?(File.join(newWorkingDir, "_config.yml"))
\ No newline at end of file